Jump to content
  • Advertisement
Sign in to follow this  
Gorgro

Linking DirectX10 in Visual C++ Express 2010

This topic is 2711 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I wanted to get started with DirectX, but I just can't seem to link the files I need. The d3d10.h seems to be linked automatically and I can include it, but I don't know how to make it find d3dx10.h. All the instructions I find speak of some "Property Manager" but the best I can find is a "Properties Window". Can someone please offer me some clear instructions on what to do?

On a related note, is it possible to link the files in such a way that I can send my code and the used libraries to someone else and they would be able to compile it right away?

Share this post


Link to post
Share on other sites
Advertisement
1.) For all of this make sure you are have the overall project selected in the Solution Explorer menu on the left and not one of the sub folders or files.

2.) Go to Project -> Project Properties -> Configuration Properties and select the All Configurations option for Configuration at the top of the window.

3.) In the same window go to Configuration Properties -> C/C++ and in the Additional Include Directories option write "$(DXSDK_DIR)include".

4.) Then also in Configuration Properties go to Linker and in the Additional Library Directories option write "$(DXSDK_DIR)lib\x86"

5.) You will need to include the headers in your code as usual

6.) Also in your code pragma comment the lib files like #pragma comment(lib, "D3D11.lib")


Well, the above 6 steps is what works for me at least.


As to your related question, I don't think that's possible.


EDIT: made the instructions a bit clearer.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!