Can't compile Direct X samples in Visual C++ Express Beta 2

I tried to install a sample from the Direct X SDK sample browser and was unable to compile it.  The first problem I managed to fix which was that I didn't have the Platform SDK installed.  Now I am getting the following error.

Error 1 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory e:\my documents\visual studio 2005\projects\configsystem\common\dxstdafx.h 57

I have the Direct X SDK installed at the following location "D:\Program Files\Microsoft DirectX 9.0 SDK (April 2005)"

The 'd3d9.h' file is in there under the include directory, but I can't get the Visual Studio compiler to look in there.  I tried adding the path into "VCProjectEngine.Dll.Express.Config" so now my file looks like this.

< xml version="1.0" encoding="utf-8" >
<VCPlatformConfigurationFile
 Version="8.00"
 >
    <Platform
  Name="VCProjectEngine.dll"
  Identifier="Win32"
  >
  <Directories
   Include="$(VCInstallDir)include;$(VCInstallDir)PlatformSDK\include;$(FrameworkSDKDir)include;D:\Program Files\Microsoft DirectX 9.0 SDK (April 2005)\Include"
   Library="$(VCInstallDir)lib;$(VCInstallDir)PlatformSDK\lib;$(FrameworkSDKDir)lib;$(VSInstallDir);$(VSInstallDir)lib;D:\Program Files\Microsoft DirectX 9.0 SDK (April 2005)\Lib\x86"
   Path="$(VCInstallDir)bin;$(VCInstallDir)PlatformSDK\bin;$(VSInstallDir)Common7\Tools\bin;$(VSInstallDir)Common7\tools;$(VSInstallDir)Common7\ide;$(ProgramFiles)\HTML Help Workshop;$(FrameworkSDKDir)bin;$(FrameworkDir)$(FrameworkVersion);$(VSInstallDir);$(PATH);D:\Program Files\Microsoft Platform SDK\Bin"
   Reference="$(FrameworkDir)$(FrameworkVersion)"
   Source="$(VCInstallDir)crt\src"
  />
    </Platform>
</VCPlatformConfigurationFile>

It still won't compile.  I couldn't get the platform SDK working by adding its path like into this file as sugested by one of the articles I read.  I had to copy the 'lib' 'bin' and 'include' files into a new directory that I made at the following location

D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK

Any help would be much appreciated.  I think my problem might be that I am not adding the path correctily to the config path, but I don't have a proper example of how its ment to be done.

Thanks

Caleb



Answer this question

Can't compile Direct X samples in Visual C++ Express Beta 2