I believe the calling convention has to be __cdecl for the PInvoke to work,
but I may be wrong about that.


yup, wrong about that - all (except a few) Win32 API functions use
stdcall - because stdcall functions clean up the stack after
themselves, your code gets (a bit) smaller (and that's the reason they
can't have variable arguments, like cdecl ones, where the caller
cleans up the stack).

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to