Jump to content
  • Advertisement
Sign in to follow this  
flip5577

C++ Express help with Direct X

This topic is 4515 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 want to get into basic DirectX programming using Visual Studio 2005 Express, I don't know how to get VC++05EE to recognize my direct x sdk?

Share this post


Link to post
Share on other sites
Advertisement
download the SDK, lets say you download it to C:\DXSDK

Load up Visual Studio

go Tools -> Options -> Project and Solutions -> VC++ Directories

Add C:\DXSDK\Include for Include Directories

Add C:\DXSDK|Lib for Library Directories

You might want to move them both to the bottom of the search list too, otherwise you can get weird errors from winnt.h

For your project then, you can include DX libraries by either:

Project -> Properties -> Linker -> Input

and For Additional Dependencies put in whatever extra libraries you need (d3dx.lib, d3dx9.lib, winmm.lib i think are what you will probably need at first)

Instead, you can put in the source file

#pragma comment(lib, "d3d9.lib")

and so on....

Then just add whatever headers you need, and your done! =)

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!