Quote Originally Posted by Codeplug View Post
>> I'm wondering if there is something to do with calling convention that goes wrong?
Mixing __cdecl and __stdcall will do that

Either remove WINAPI from the interface, or add it to the MYPROC typedef.

gg
Absolutely! That is the solution!
Thank you Codeplug and everyone else for the help!