Sign in to follow this  
captainsexy

Starting with DirectX

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
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

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