__cdecl:
参数入栈顺序:从右到左,由调用者负责清栈。这是C/C++/MFC的默认调用约定。可变参数和C的函数只能用这个约定。
__stdcall:
参数入栈顺序:从右到左,由被调用者负责清栈。这是Win32 API的调用约定。
Windef.h中的宏:
#define CALLBACK __stdcall #define WINAPI __stdcall #define WINAPIV __cdecl #define APIENTRY WINAPI #define APIPRIVATE __stdcall #define PASCAL __stdcall
更多:http://blog.csdn.net/tuwen/archive/2008/03/14/2182838.aspx
相关日志
Tags: C/C++