?
Solved

Getting started with DirectX / C++ .NET

Posted on 2004-03-30
10
Medium Priority
?
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

777 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