[Tutorial]How to fix "Cannot Include d3dx9.h" in VC++ 2010[With Pics!]

Posts 18 of 8 · Page 1 of 1
[Tutorial]How to fix "Cannot Include d3dx9.h" in VC++ 2010[With Pics!]

This tutorial will teach people how to fix the "Unable to include d3dx9.h" error when compiling, hopefully reducing the number of threads regarding this.

Credits:
CodeDemon--Writing the tut
Gellins Base--What I used as an example project.

1)Open your project, then at the top select Tools->Settings-Expert Settings.


2)After it re-configures, go to Project->YOUR PROJECT NAME PROPERTIES.


3)Now click on Configuration Properties and then select Include Directories.


4)Click on the Edit button and a window should pop up.


5)At the top of the new window click on the little folder icon labeled "New Line"


6)Click the triple dot button and then navigate to your C:/YOUR DIRECTX SDK DIRECTORY(Usually under Program Files)/Include and click Select Folder.


7)Now we add the library files, do the same exact thing we did in steps 3-6

8)Select Library Directores

9)Click on the Edit button and a window should pop up.


10)At the top of the new window click on the little folder icon labeled "New Line"


11)Click the triple dot button and then navigate to your C:/YOUR DIRECTX SDK DIRECTORY(Usually under Program Files)/Lib/x86 and click Select Folder.


12)Now click the Apply button on the window where all the VC++ Directories were.


13)Hit the Save All button.


14)Now build your project in release mode and you should no longer have that error!
AWSOME BIG THANKSSss

Lol I Don't Find The Setting o-o The Tut Is Only For VC 2010?
Good job. Sadly I was planning on doing this.
Yeah this tut is only for VC++ 2010, its a bit different for VC++ 2008 I believe.

Sorry Richdude would have let you do it if I had known
People who can't do this without the tutorial shouldn't be programming using any DirectX API. But it's a valiant effort.
Very true Void
I think its kool that a choob hasnt come here yet to ask the noob question of the day.
old is old

btw for 2010 you can't use that way you have to include the full target like this
[php]#include <C:\Program Files\Microsoft DirectX SDK (June 2010)\Include\d3dx9.h>[/php]
Posts 18 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?