views:

592

answers:

2

I am trying to compile a program I took off a cd from a book that uses directx to render 3d objects. when i press compile I get the following error

C1083: Cannot open include file: 'dxerr9.h': No such file or directory

I am using VC++ 2008 Express Edition and i am running off of Vista. I went to the following folder

[edit]

C:\Program Files (x86)\Microsoft DirectX SDK (February 2010)\Include

I was able to find dxerr.h in the folder and the path is also being included in the VC++ Directories tab in the options window. dont know whats going on.

+2  A: 

It seems your program was written using older version of DirectX SDK. The 'dxerr9.h' is present at least in "Microsoft DirectX 9.0 SDK (December 2004)", but is absent at least in "Microsoft DirectX SDK (August 2009)".

VitalyVal
I went to the includes folder and I was able to find a header file called Dxerr.h. could this be the samething. should I try that out instead
numerical25
Yes, it was renamed to DxErr.h in one of the latest DirectX SDKs. The functions are also missing the 9 at the end now so you might have to change that too.
Maurice Gilden
A: 

I think VitalyVal was right. about the following

It seems your program was written using older version of DirectX SDK. The 'dxerr9.h' is present at least in "Microsoft DirectX 9.0 SDK (December 2004)", but is absent at least in "Microsoft DirectX SDK (August 2009)".

I think the files now go by dxerr.h. I removed the 9 to the header ahd lib files and it worked

numerical25
Well do accept his post then. Theres a good chap.
Goz