Directx and vs05 question

Started by
2 comments, last by Raknar 15 years, 2 months ago
Hello, I've programmed C++ for a couple of years now and have finally decided to get into DirectX. Bearing that, I purchased "Ultimate Game Programming with DirectX" by Allen Sherrod. However, I have run into a stump. When I compile my first program, (which I've checked line per line against the book example), I get an error that "Cannot open include file: 'd3d9.h': No such file or directory" I've gone into the properties and added (in the Linker/input/additional dependencies) d3d9.lib and d3dx9.lib... However, I still receive the error message after the rebuild. What am I missing here?
Advertisement
You have to add the header files.
Add them in the properties too, they are in the include folder.

[Edit]
You have to add the header files in the compiler properties, not the linker.
Read This.
I'd actually done half of this by the time I read your post. I just missed adding in the line for the Library.

Thank you, this is a huge help.

This topic is closed to new replies.

Advertisement