Jump to content
  • Advertisement
Sign in to follow this  
captainsexy

Starting with DirectX

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

Ive been using C++ for about a year and recently i downloaded the DirectX SDK with Microsoft Visual C++ 2008 Express Edition. I cannot seem to make any tutorials for C++ with directx work, either from this site or any other. Do i need to include some special headers or something? Please help me figure out how to start off. Thank you.

Share this post


Link to post
Share on other sites
Advertisement
when i install the directx sdk,i can create a directx project in vs.net 2005.
maybe you can check in creating a project to make sure there is a directx project.

Share this post


Link to post
Share on other sites
ok, i think that my problem lies in the "directx project." When i want to make a new project, that is not an option. Maybe i havent installed everything? How do i get the DirectX project to show up?


the error code i got with one tutorial is

"c:\documents and settings\my documents\visual studio 2008\projects\directx\directx\directx.cpp(1) : fatal error C1083: Cannot open include file: 'Cor_Direct3D9.h': No such file or directory"

i have gotten several different ones with different tutorials, but this is the last one ive gotten.

[Edited by - captainsexy on January 31, 2008 5:26:29 PM]

Share this post


Link to post
Share on other sites
You just want to create a Win32 project when using Directx

Did you set up your directories in VS?

Tools->Options->Projects and Solutions->VC++ Directories

Set the dropdown 'Show directories for' and select Include files, then add the folder to your directx sdk

e.g. c:\directx9_2007\Include
Then set the dropdown to Libraries and do the same, but with

e.g. c:\directx9_2007\Lib
No idea what 'Cor_Direct3D9.h' is. Must be specific to the code you found

Share this post


Link to post
Share on other sites
VS 2008 is not officially supported with the DX SDK until the march 2008 release from what I understand although as you found out it seems to work okay with the nov 07 DX SDK.

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!