Solved

Getting started with DirectX / C++ .NET

Posted on 2004-03-30
10
175 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now