Click to See Complete Forum and Search --> : DirectX include files


Rich2189
May 30th, 2006, 04:19 PM
:) downloaded the latest DX SDK, the install went fantastic :), the samples wouln't work with VB.net so i decided to dump VB 2005 and hit C++ instead of battling with the .net framework because I think its pants.

Managed to get a normal window throught the win32 api after sorting out some casting errors hurah nothing special there. But when i tried to include the Direct X files it couldn't find them. Is there anything else besides the SDK i need?. Im using VC++ 6, windows aplication.

heres the include bit



#include <windows.h>
#include <d3d10.h> //LINE 9
#include <d3dx10.h>
#include "resource.h"



and the error



c:\documents and settings\richard bunt\my documents\visual studio projects\tutorial00\tutorial00.cpp(9) : fatal error C1083: Cannot open include file: 'd3d10.h': No such file or directory
Error executing cl.exe.

dx9.exe - 1 error(s), 0 warning(s)

philkr
May 30th, 2006, 04:37 PM
Did you specify the include path for the DirectX SDK in the options?

Rich2189
May 30th, 2006, 04:42 PM
Nope :), which path would it be? any file/dir in particular?

philkr
May 30th, 2006, 05:02 PM
It is in YourDirectXSDKInstallDir\Include

Rich2189
May 30th, 2006, 05:10 PM
Found it, thanks :)

asimha
September 22nd, 2010, 07:06 AM
I am having the same error.. could you please elucidate how you got your problem solved? Thanks!