Solved

Getting started with DirectX / C++ .NET

Posted on 2004-03-30
10
196 Views
Last Modified: 2010-04-01
Hi, I've installed the DirectX 9 SDK and am attempting to run the sample code provided with the Microsoft Visual C++ .NET IDE. Regardless of what program I try to run I recieve the error:

c:\dxsdk\Samples\C++\Direct3D\....: fatal error C1083: Cannot open include file: 'D3DX9.h': No such file or directory

All references are added tot he project and exist in the GAC. I've heard there is a bug in the DX installer... could this be the problem?

Thanks,

--- JQ
0
Comment
Question by:JenniQ
  • 4
  • 2
10 Comments
 
LVL 7

Expert Comment

by:leflon
ID: 10713192
Hi JenniQ,

how do you include the D3DX9.h file, by using #include<...> or #include"..."?

leflon
0
 
LVL 3

Author Comment

by:JenniQ
ID: 10715161
The code is written using the <...> method. Whats the difference?
0
 
LVL 7

Expert Comment

by:leflon
ID: 10715929
if you use the <..> syntax, you have to add the path the header file is in, to the include path of your project settings.
if you would use the "..." syntax, the header must be located in the project dir (i think so).

i don't have a VC.NET at hand right now, so i can't tell you the location of additional include dirs in the project settings. but i will try asap.

leflon
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 3

Author Comment

by:JenniQ
ID: 10717965
OK, The problem was solved by adding a reference to the \lib and \include directory of the DirectXSDK to the Directories tab under Tools/Options.

VS.NET doesn't have this option though; will I run into the same issure under .NET?
0
 
LVL 7

Expert Comment

by:leflon
ID: 10963118
@JenniQ,
sorry for not returning here for ...nearly a month, upps.
if you are still interested in your last question, i think yes, you will run into similar issue. but to add include and/or lib dirs to the project, you can right click the project in 'Solution Explorer' and select 'Properties' from context menu. under C/C++\General (include dirs) and Linker\General (lib dirs) you can enter the appropriate information.

@tinchos
thanks for bringing me back to the Q :-)

cheers
leflon
0
 
LVL 7

Expert Comment

by:leflon
ID: 10984008
@tinchos
delete and refund? i think the comments helped JenniQ to find the settings to modify. but do as you think is best :)

cheers
leflon
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 11021949
PAQed, with points refunded (50)

GhostMod
Community Support Moderator
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question