Microsoft KB Archive/908269

= Many syntax errors and type specifier errors occur when you try to build a DirectX-based C++ application in Visual Studio 2005 =

Article ID: 908269

Article Last Modified on 11/22/2007

-

APPLIES TO


 * Microsoft Visual Studio 2005 Standard Edition
 * Microsoft Visual Studio 2005 Professional Edition
 * Microsoft Visual Studio 2005 Express Edition
 * Microsoft Visual Studio 2005 Team System Architect Edition
 * Microsoft Visual Studio 2005 Team System Developer Edition
 * Microsoft Visual Studio 2005 Team Foundation
 * Microsoft Visual C++ 2005 Express Edition

-





SYMPTOMS
When you try to build a Microsoft DirectX-based C++ application in Microsoft Visual Studio 2005, many syntax errors and type specifier errors occur.



CAUSE
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.
 * 1) include 

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.
 * 1) include 



RESOLUTION
To resolve this problem, put the DirectX include file directive after the Windows include file directive.



MORE INFORMATION
For more information about DirectX-based applications, visit the DirectX Developer Center at the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/xna/aa937781.aspx

Keywords: kbdirectxsdk kbcompiler kbtshoot kbprb KB908269

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.