Jump to content
  • Advertisement
Sign in to follow this  
NamelessTwo

DX with Visual C++ 2005 Express?

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

Advertisement
I don't have an OS that supports it, but are you just having problems linking in the DX libraries? What problem are you encountering?

Share this post


Link to post
Share on other sites
From [Configuring DirectX with VC++ Express]

Quote:

You have to set the search directories. In VC++ 2005 Beta, go Tools->Options->Projects and Solutions->VC++ Directories. Select Include Files from the directories dropdown and then click the shiny folder icon to create a new directory. Browse (by clicking the ... button) and locate C:/Microsoft DirectX SDK/Include and click open. Your path may differ slightly. Then click Library Files from the dropdown and repeat the same process, only selecting the lib folder instead of the include folder when browsing for the path.

You also have to setup the Platform SDK. Microsoft dedicated a page to helping you set it up at http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx.

Finally, you have to add the DirectX library files to each project you develop using DirectX. You can either navigate your project->properties menus and locate the field where you add your library files, or link them with a preprocessor directive in the code. I prefer the latter and use this format:

#pragma comment (lib, "LIBRARY_FILE.LIB")

The three main Direct3D libraries are d3d9.lib, d3dx9.lib and dxguid.lib. The DXSDK docs will specificy which library files you need.

Share this post


Link to post
Share on other sites
Quote:
Tools->Options->Projects and Solutions->VC++ Directories. Select Include Files from the directories dropdown and then click the shiny folder icon to create a new directory


Do I just misunderstand something but I don't see any "shiny folder icon"! All I see are two dropdowns Platform and Show directories for and nothing else.

BTW. I have installed VC++ 2005 after I have installed DX SDK (I've used it with Visual C# until now).

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!