INFO: Windows Requires _stdcall Calling ConventionID: Q232491
|
Windows 2000 requires that applications use the _stdcall calling convention for window and dialog procedures.
Microsoft Visual C++ defaults to the _cdecl convention for calling functions. Most 32-bit DLLs included with Microsoft Windows 95, Windows 98, Microsoft Windows NT, and Windows 2000 support the _stdcall calling convention. Procedures that require _stdcall return a "Bad DLL calling convention error" if _cdecl is used. In Windows 2000, all window and dialog procedures require _stdcall.
For more information about the _stdcall calling convention see the Adding Program Functionality section of the Visual C++ Programmer's Guide.
Additional query words: compatguidestability
Keywords : kbWinOS2000 kbSDKWin32 kbGrpKernBase
Version : winnt:4.0
Platform : winnt
Issue type : kbinfo
Last Reviewed: June 16, 1999