stdcall and cdecl
Raymond Chen gives a nice overview of what __stdcall and __cdecl does. (1) The caller “knows” to clean up the stack after calling a function because the compiler knows the calling convention of that function and generates the necessary code. void __stdcall StdcallFunc() {} void __cdecl CdeclFunc() { // The compiler knows that StdcallFunc() uses … Read more