I know some C, C++, Java, and IDL, but I am completely new to Direct3D and graphics in general. I picked up this book, Beginning Game Programming by Jonathan Harbour, which teaches game programming via C++ and Direct3D. I'm on the 5th Chapter, which gets you to use Direct3D for the first time.
I am getting a fatal error when I compile.
Quote:Compiling...
winmain.cpp
c:\program files\microsoft visual studio\myprojects\d3d_windowed\winmain.cpp(6) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory
Error executing cl.exe.
I have at the top of my program,
Quote:
//header files to include
#include <d3d9.h>
#include <time.h>
And I have added d3d9.lib in the Project Settings (I'm using Microsoft Visual C++).
I have the Direct3D SDK installed as well, so I'm unsur as to why this isn't working. Could it be problems with me using a different version of Direct3D? Or maybe I haven't installed it correctly?
I'm just a newb, and any help is greatly appreciated. Thanks in advance!