Hi, I have VS.net 2003, direct x 9.0c installed. But when I try to compile the projects under "Microsoft DirectX SDK (August 2007)\Samples\C++\Direct3D" VS keeps saying: Compiling... DXUT.cpp C:\Program Files\Microsoft DirectX SDK (August 2007)\Include\D3D10.h(836) : error C2061: syntax error : identifier '__out' C:\Program Files\Microsoft DirectX SDK (August 2007)\Include\D3D10.h(840) : error C2061: syntax error : identifier '__in' C:\Program Files\Microsoft DirectX SDK (August 2007)\Include\D3D10.h(844) : error C2059: syntax error : ')' C:\Program Files\Microsoft DirectX SDK (August 2007)\Include\D3D10.h(844) : fatal error C1903: unable to recover from previous error(s); stopping compilation Any ideas why? This happens with all the project samples. I haven altered any settings, alls with defaults when installed the sdks. No idea why its complaining about dx10. I use XP Pro sp2. Any help much appreciated.
The version of the Windows headers that shipped with VS .NET 2003 is out of date. If you install the Windows SDK (formerly known as the Platform SDK) you will get updated headers. Note that VS .NET 2003 is not supported by the Windows SDK, so you'll need a Platform SDK that does. The Platform SDK for Windows Server 2003 SP1 should work. The DirectX SDK dropped support for VS .NET 2003 in March 2008 when we added VS 2008 support. You might also want to take a look at the VS 2005 or VS 2008 C++ Express edition. -- Chuck Walbourn SDE, XNA Developer Connection This posting is provided "AS IS" with no warranties, and confers no rights.
Hi thanks for reply. Tried installing the Windows Server 2003 SP1 but it gives me a version error. Im using XP sp2. Is there a different Platform SDK I can use? Many thanks. "Chuck Walbourn [MSFT]" wrote in message news:%23ZfzO1XrIHA.3780@TK2MSFTNGP03.phx.gbl... > The version of the Windows headers that shipped with VS .NET 2003 is out > of date. If you install the Windows SDK (formerly known as the Platform > SDK) you will get updated headers. > > Note that VS .NET 2003 is not supported by the Windows SDK, so you'll need > a Platform SDK that does. The Platform SDK for Windows Server 2003 SP1 > should work. The DirectX SDK dropped support for VS .NET 2003 in March > 2008 when we added VS 2008 support. > > You might also want to take a look at the VS 2005 or VS 2008 C++ Express > edition. > > -- > Chuck Walbourn > SDE, XNA Developer Connection > > This posting is provided "AS IS" with no warranties, and confers no > rights. > >
Platform SDK for Windows Server 2003 SP1 should install fine on XP SP2. Make sure you are using the PSD-X86.EXE. http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en#Requirements -- Chuck Walbourn SDE, XNA Developer Connection This posting is provided "AS IS" with no warranties, and confers no rights.