What is the difference between __cdecl and __stdcall
-
hi, I want to know what is the main what is the difference between __cdecl and __stdcall ? Can any one help regarding this. Regards, Chinna
Inside Calling Conventions[^] Calling Conventions Demystified[^] x86 calling conventions[^]
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?
-
hi, I want to know what is the main what is the difference between __cdecl and __stdcall ? Can any one help regarding this. Regards, Chinna
A point for you from the direction Mike just pointed you,
So if you are using a function which is called twenty times, the cleanup code will be placed only once in the function called, if __stdcall is used. But if __cdecl is used, it will be twenty times in the code, i.e., everywhere in main after function is called, and if we have say fifty functions in a file each of which is called twenty times, then the size of the EXE in CDecl will be large. But then what is the advantage of __cdecl... that's something that only C has and not even C++.
Dario: How is "directory" in French? (I mean a file system directory). John Simmons: "zee file holdaire thingie"