Sign in to follow this  

C++ Express help with Direct X

This topic is 4304 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

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

This topic is 4304 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this