Jump to content
  • Advertisement
Sign in to follow this  
lordcorm

DirectX Help

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

Hi, i just got VS C++ and DirectX Febuary 2007 SDK and was wondering how do i link everythang together? Thanks EDIT: Also i download the PlatformSDK for VSC++, linked it, but now where to i start my C++ code?

Share this post


Link to post
Share on other sites
Advertisement
First you want to enter the directories that Visual Studio will search in for DirectX headers and libraries. Im using VC++ 2005, but it should also work with 2003.

If you have a project open, and have already installed DirectX then goto "Tools" on the main toolbar then click on "Options".
In the navigation tree on the left side of the new window press "Projects and Solutions", and then under this click "VC++ Directories".
In the drop down box under "Show Directories For:" press "Include Files" and then create a new line by pressing the button with a folder on it. In the new line navigate to the path where you had installed the DirectX include files (Mine is C:\DXSDK\include).
The under "Show Directories For:" pick "Library Files", make a new line and navigate to where you installed the DirectX Library Files (Mine is C:\DXSDK\lib).

Exit out of project options and then under "Project" on the main toolbar press "<Your Program Name> Properties" (Alt+F7). Under "Configuration Properties" press "Linker" and then under that press "Input". In the box that says "Additional Dependencies" add the library files you need (Im using DirectX 8.1 so I have ddraw.lib dsound.lib dinput.lib dxguid.lib you'll have dgraphics.lib or something, for the rendering components.).

And thats what it takes to get DirectX working...Don't forget to include the header files into your project (#include dsound.h ) etc.

EDIT: You may also need to add winmm.lib to "Additional Dependenices" in the project options.

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!