Solved

Getting started with DirectX / C++ .NET

Posted on 2004-03-30
10
205 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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 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 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.

789 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