Archived

This topic is now archived and is closed to further replies.

Luke1

Dx9 Problem

Recommended Posts

when i go to load the sample c++ code i get: --------------------Configuration: CreateDevice - Win32 Debug-------------------- Compiling... CreateDevice.cpp D:\DXSDK\Samples\C++\Direct3D\Tutorials\Tut01_CreateDevice\CreateDevice.cpp(10) : fatal error C1083: Cannot open include file: ''d3d9.h'': No such file or directory Error executing cl.exe. CreateDevice.obj - 1 error(s), 0 warning(s) for all of the c++ directx9 samples, any ideas on how to fix this ?

Share this post


Link to post
Share on other sites
Make sure that in VC++ your compiler has been set to include the DX header files. Go to tools->options->directories and check the include option and lib option. (your_DX9_PATH/include and your_DX9_PATH/lib).

Share this post


Link to post
Share on other sites