• 0

[C++ DX9] drama


Question

I don't know why these things never work for me its very frustrating that i can't find any information on it either

i downloaded a c++ project demonstrating dx9 capabilities and i'm getting these errors

fatal error C1083: Cannot open source file: '..\Common\dhUserPrefsDialog.cpp': No such file or directory

fatal error C1083: Cannot open source file: '..\Common\dhD3D.cpp': No such file or directory

i figured i may need the dx9 sdk so i downloaded the 450MB file and still having the same issue its very frustrating can someone put me out of my misery and tell me how i can fix this problem? thanks :angry:

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
I don't know why these things never work for me its very frustrating that i can't find any information on it either

i downloaded a c++ project demonstrating dx9 capabilities and i'm getting these errors

fatal error C1083: Cannot open source file: '..\Common\dhUserPrefsDialog.cpp': No such file or directory

fatal error C1083: Cannot open source file: '..\Common\dhD3D.cpp': No such file or directory

i figured i may need the dx9 sdk so i downloaded the 450MB file and still having the same issue its very frustrating can someone put me out of my misery and tell me how i can fix this problem? thanks :angry:

You need to point your compiler of choice to look inside the directories that you installed the DirectX SDK. You need the include/lib folders for the platform of choice (x86/x64).

Edit - In Visual Studio this is: Tools --> Options --> Projects and Solutions --> VC++ Directories. (I think).

Link to comment
Share on other sites

  • 0

Those are not DirectX files. They are probably part of some third-party sample framework that was used to make the sample you downloaded.

What it means is that if this project is in

C:\dev\foo\sampleyoudownloaded

it is trying also trying to compile a dependency that is supposed to be in

C:\dev\foo\Common

You probably forgot to download it, so go back to the site where you downloaded the sample and look for it.

The DirectX SDK also includes a series of samples of various difficulty that you can look at by running the sample browser.

Link to comment
Share on other sites

  • 0

yep i realised i was missing the common folder and grabbed that however i was still getting a directx related error eventually turned out i was including them in the wrong spot

in VC++ directories theres a drop down that has Lib/Include and i wasn't selecting those once i picked them and updated the Additions list in Linker>Input it all worked

thanks for the help guys ^_^

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.