BUG: You receive many compilation error messages when you compile a Visual C++ application in Visual Studio 2005 (922323)
The information in this article applies to:
- Microsoft Visual Studio 2005 Team System Architect Edition
- Microsoft Visual Studio 2005 Team System Developer Edition
- Microsoft Visual Studio 2005 Team System Test Edition
- Microsoft Visual Studio 2005 Team System Team Foundation:
- Microsoft Visual Studio 2005 Standard Edition
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Visual Studio 2005 Express Edition
SYMPTOMSConsider the following scenario: - You create a Microsoft Visual C++ application in Microsoft Visual Studio 2005.
- You include the following header files:
In this scenario, when you compile the application, you receive many compilation error messages. CAUSEThis problem occurs because the default Stdafx.h file defines the WIN32_LEAN_AND_MEAN constant. When this constant is defined, necessary definitions for the Gdiplus.h file are excluded.WORKAROUNDTo work around this problem, comment out or delete the following line of code in the Stdafx.h file of the Visual C++ application project. #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers STATUS Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Major | Last Reviewed: | 8/10/2006 |
---|
Keywords: | kbcode kbtshoot kbbug KB922323 kbAudDeveloper |
---|
|