Article ID: 908269 - View products that this article applies to.
When you try to build a Microsoft DirectX-based C++ application in Microsoft Visual Studio 2005, many syntax errors and type specifier errors occur.
This problem occurs when the DirectX include file directive is located before the Microsoft Windows include file directive. For example, in the following code example, the DirectX include file directive is incorrectly located before the Windows include file directive.
Note This problem may occur after you use the Visual Studio Conversion Wizard to convert the application to Visual Studio 2005, and the order of the include file directives was changed before the conversion.
To resolve this problem, put the DirectX include file directive after the Windows include file directive.
For more information about DirectX-based applications, visit the DirectX Developer Center at the following Microsoft Developer Network (MSDN) Web site:
Article ID: 908269 - Last Review: November 22, 2007 - Revision: 1.2