locked
How do I set up the DirectX SDK to work with Visual C++ 2008 Express Edition?

    Question


  • Hi,

    I've been googleing and searching the internet for a while, and I have still found no reasonable answer.
    (Most posts deal with older versions of Visual C++)...

    If anybody could let me know how to set up the paths to DirectX so that I could compile and run a DirectX program from within Visual C++ 2008 Express edition, i'd be very grateful!

    I'll keep trying, but,
    I'd really appreciate it if someone could let me know a way here.
    If I figure it out myself, I'll post how I did it here.

    Cheers,
    David Smile
    Sunday, January 20, 2008 7:36 PM

Answers

  • Hi david you can install the SDK just follow this steps...:


    1. Download and Install the SDK
    2. Download Visual C++2008

    3. Open Visual C++ and then go to Tools/Options
    4. In the new window look for  ../Project and Solutions/VC++ Directories
    5.In the right look for the combo box of "Show Directories for:"
    6. In the combo box click on Include
    7. In the box that's under the combo box, double click in the last spot (which is blank).
    8. After click on it a "Examine" option will appear.. You have to search for the Instalation folder and double click..
    9. after you have done the process with the Include. Repeat it but with the library I mean ook for Libraries instead of include in the combo box.

    if you want to test that the linker is working just create a new Win32 app

    after the headers add..

    #include <d3d9.h> // if you are using DX9
    #include <d3dx9.h>

    DIRECT3D9 D3D = NULL;
    DIRECT3DDEVICE9 D3Dd = NULL;

    should work..

    sorry for my english/mistakes i dont speak very good..

    Yours Gianfranco

    Wednesday, January 23, 2008 2:24 AM
  • Hi,

     

    You should firstly install the DirectX SDK and then set up reference properly in Visual Studio. For detail information, you can read this thread.

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=595754&SiteID=1

     

    Hope this helps!

     

    Tuesday, January 22, 2008 9:21 AM

All replies

  • I think you have to wait for the release of March2008 DirectX SDK for it to work
    with VC++ 2008 express.

    Regards

    Monday, January 21, 2008 1:54 AM
  • Hi,

     

    You should firstly install the DirectX SDK and then set up reference properly in Visual Studio. For detail information, you can read this thread.

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=595754&SiteID=1

     

    Hope this helps!

     

    Tuesday, January 22, 2008 9:21 AM
  • Hmmm...I'd love to know what that post was to check! but the link doesn't work (it gets redirected from a missing forum or post). Sad

    Tuesday, January 22, 2008 8:23 PM
  • Hi david you can install the SDK just follow this steps...:


    1. Download and Install the SDK
    2. Download Visual C++2008

    3. Open Visual C++ and then go to Tools/Options
    4. In the new window look for  ../Project and Solutions/VC++ Directories
    5.In the right look for the combo box of "Show Directories for:"
    6. In the combo box click on Include
    7. In the box that's under the combo box, double click in the last spot (which is blank).
    8. After click on it a "Examine" option will appear.. You have to search for the Instalation folder and double click..
    9. after you have done the process with the Include. Repeat it but with the library I mean ook for Libraries instead of include in the combo box.

    if you want to test that the linker is working just create a new Win32 app

    after the headers add..

    #include <d3d9.h> // if you are using DX9
    #include <d3dx9.h>

    DIRECT3D9 D3D = NULL;
    DIRECT3DDEVICE9 D3Dd = NULL;

    should work..

    sorry for my english/mistakes i dont speak very good..

    Yours Gianfranco

    Wednesday, January 23, 2008 2:24 AM
  • hey xsezzus Smile



    Perfect solution to the problem thanks alot Smile


    Monday, August 25, 2008 11:48 PM
  • Cool! xsezzus, the instruction just work fine. Thank you.
    Thursday, February 24, 2011 6:55 PM
  • Thanks for useful info!
    Thursday, April 14, 2011 7:37 AM
  • Do any of you know why i am getting the following error messages when I try to compile my 3d game.

    fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
    fatal error C1083: Cannot open include file: 'Windows.h': No such file or directory

    I have linked it all through correctly and currently have the Direct x SDK February 2010(I have the full visual studio 2008 package installed)
    I have set this up before on a previous computer which had Windows XP and I used the March 2009 package and had no issues, is it set up differently in Windnows 7 or does 2010 require a extra things?
    all my links are to C;/Program Files (84) /Microsoft DirectXSDK(February 2010) and then the the relevant LIB,Include and utility.
    Any suggestions would be greatly appreciated!

    Sunday, July 17, 2011 11:34 AM
  • A detail tutorial on how to compile directx files is provided here :

    http://makeagame.tumblr.com/post/8218548060/tutorial-1

    It shows a detailed video tutorial on how to set up visual c++ for directx. Your errors probably are occurring because of not linking Lib\Win32...

    Saturday, July 30, 2011 4:00 AM