Function calling convention in VC6;
Calling convention Stack clearing Argument passing
__cdecl Caller Right to left, passing
__stdcall function body Right to left, passing
__fastcall function body Right to left, use register (ECX, EDX) first, then use stack
thiscall function The body this pointer is passed through ECX by default, and other parameters are pushed onto the stack from right to left
__cdecl is the default calling convention of C\C++; there is no thiscall keyword in the calling convention of VC, it is the default calling convention of class member functions;
the calling convention of the main (or wmain) function in C\C++ must be __cdecl, Changes are not allowed; the
default calling convention can generally be changed through compiler settings, if your code depends on the calling convention, please specify the calling convention that needs to be used;
Details: http://www.sudu.cn/info/html/edu/20080403/261250.html