Thank you for all the answer's But when should I use stdcall?
Quote from: captain jaster on December 06, 2010, 07:57:43 pmThank you for all the answer's But when should I use stdcall?when your function (from dll) is to be called from a c-like language you can not use the pascal default (and superior) calling convention; you use cdecl or stdcall (not the same thing) instead.
You should use stdcall whenever what you're calling is declared with stdcall The Windows API is mostly declared with stdcall on win32, but when you call C/C++ code, it's cdecl by default(unless they've manually changed it to something else)