'dxerr9.h': no ​​such file or directory

I am trying to compile a program that I removed cd from a book that uses directx to render three-dimensional objects. when I click 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 from Vista. I moved to the next folder

[edit]

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

I managed to find dxerr.h in the folder, and this path is also included in the VC ++ Directories tab in the options window. I don’t know what is going on.

+7
c ++ c visual-studio-2008 visual-c ++ directx
source share
3 answers

It seems your program was written using the old DirectX SDK. "Dxerr9.h" is present at least in the "Microsoft DirectX 9.0 SDK (December 2004)", but not at least in the "Microsoft DirectX SDK (August 2009)."

+10
source share

I think Vitaly Val was right. about the following:

It seems your program was written using the old DirectX SDK. "Dxerr9.h" is present at least in the "Microsoft DirectX 9.0 SDK (December 2004)", but not at least in the "Microsoft DirectX SDK (August 2009)."

I think the files are now going to dxerr.h. I deleted 9 in the header and lib files and it worked.

+1
source share

This title was definitely deceived in the Aug2009 SDK, although this should not be surprising, since it had already been two years older versions of DX were obsolete, which allows you to use only one library for everything.

By the way, people might be interested in checking out this post for a kind of more updated version.

0
source share

All Articles