Visual Studio C++ 2005 Express + Microsoft Platform SDK install

I have installed Visual Studio C++ 2005 Express, the Microsoft Platfom SDK and the DirectX SDK. I have also used the "Using Visual C++ 2005 Express with the Microsoft Platform SDK" guide to set directories etc. Include directories for both SDKs are added.

When trying to compile any of the example files from the DirectX SDK the compiler is telling me that one of the include files could not be opened (Cannot open include file: 'd3d9.h'). Is this a bug I know that you should not be able to set directories directly in Visual Studio.


Answer this question

Visual Studio C++ 2005 Express + Microsoft Platform SDK install

  • Tony Maynard-Smith again

    Hi,

    It's not a bug - but it is a very common 'slip up' Smile

    Are you *definitely* sure that the correct DirectX 'include' and 'lib\x84' folders are added. They should also be at the top of the search list as well. Your post seems to indicate that you have, but the error you describe is text-book for a situation where you haven't added them!

    As a note, current/previous DX-SDK's auto-configured the IDE to have these paths, but given that VC8 has been released between SDK's we're having to wait for the December update before we get an installer that'll auto-configure VC8.

    I can't find it right now (still getting used to VC8!), but I'm pretty sure under VC7 you could get the compiler to output a long list of all the folders it searched when looking for binaries/includes - if you can get that list you should be able to verify if it is actually searching the places you told it to...

    hth
    Jack


  • danielanvar

    This is not unusual to see if you install the SDK and then install a version of VS 2005 afterward. 

    The fastest fix is to launch your VS edition, click on Tools->Options.  Select "Projects and Solutions"-> "VC++ Directories".

    Look over at the "Show directories for" dropdown.  Select "Include files", then click the little folder icon to add a new entry (Ctrl-Insert also works).  Enter this line:
    $(DXSDK_DIR)include.

    Now change the dropdown to "Library files" and add this line:
    $(DXSDK_DIR)lib\x86.

    Now you should be all set!



  • Hoodwinked

    You might get a better answer on this in the Windows Gameing groups as this seems to be a problem with the linking of the DirectX system on your machine.

  • Visual Studio C++ 2005 Express + Microsoft Platform SDK install