QuentinC wrote: > But it doesn't work if the imported function is __stdcall, even if > __stdcall is specified both in C and in lua. > I think it's about "func@XX" naming, is there a way to work around ? That's strange. What's the function signature and what's the decorated name generated by the C compiler? BTW: __stdcall is *not* faster or better in any way. In fact, it's slower on modern CPUs. Ditto for __fastcall, except for the cases with up to two integer or pointer arguments. --Mike