?
Solved

Getting started with DirectX / C++ .NET

Posted on 2004-03-30
10
Medium Priority
?
221 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
7 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
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…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

839 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