INFO: Windows Requires _stdcall Calling Convention

ID: Q232491

This article discusses a Beta release of a Microsoft product. The information in this article is provided as-is and is subject to change without notice.

No formal product support is available from Microsoft for this Beta product. For information about obtaining support for a Beta release, please see the documentation included with the Beta product files, or check the Web location from which you downloaded the release.
The information in this article applies to:


SUMMARY

Windows 2000 requires that applications use the _stdcall calling convention for window and dialog procedures.


MORE INFORMATION

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.


REFERENCES

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