Re: c_func in Eu 4.1 Beta (Windows)

new topic     » goto parent     » topic index » view thread      » older message » newer message
mattlewis said...
Jerome said...
mattlewis said...

Ah...this is a calling convention problem. The dll is expecting cdecl (the default when you write C code), but the way it's imported in the code, you end up calling with stdcall (a win32 aberration). Try changing to "+sum"...

Thanks Matt, that fixes the issue for mylib.ex and my old program! This was starting to drive me a little crazy...

This problem has driven me *a lot* crazy over the years. It will be one of the great benefits of moving away from 32-bit Windows.

Matt

Speaking of which, now might be a good time for a certain someone to chime in and explain why this problem doesn't happen on 64bit windoze.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu