| | Using Win32 Calling Conventions |
 | | The default calling convention is __cdecl, but each one can be requested explicitly with the /G? parameter to the compiler. |
 | | Before one lambasts the programmer for making such a foolish mistake, consider that the default calling convention is usually __cdecl, so even if the file1.c example omitted the declaration for foo(), it would still default upon first use to __cdecl. |
 | | In most cases, it makes no difference either which calling convention is used by default throughout the program, or what the convention is on any particular function, but there are a few exceptions of note when using other than __cdecl for the default. |
| www.devnewz.com /devnewz-3-20050125UsingWin32CallingConventions.html (2099 words) |