Friday, July 31, 2009

Help please on microsoft visual c++ express edition 2008?

well this is really annoying me im trying to do a tutorial i downloded (the game creators) but i go to debug and it says this: c:\program files\the game creators\dark gdk\include\darksdkcamera.h(16) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory


Build log was saved at "file://c:\Documents and Settings\dan\My Documents\Visual Studio 2008\Projects\Dark GDK - Game1\Dark GDK - Game1\Debug\BuildLog.htm"


Dark GDK - Game1 - 1 error(s), 0 warning(s)


========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== any help would be good thanks

Help please on microsoft visual c++ express edition 2008?
d3dx9.h is part of the DirectX 9 SDK, you need to download and install it from the Microsoft DirectX site (see the link below). Make sure you download the SDK and not the runtime version.





***UPDATED***





Seriously, that's the problem...I'm a professional game developer, I have to include this file in all of my 3D applications. The d3dx9.h file is in the DirectX 9 include directory, if you have already installed the DirectX 9 SDK then you haven't added that directory to the list of directories that Visual Studio searches for its include files, you can do that in the options page. Alternatively you can add it to the project settings, although that's not as good an option because you'll have to do that for *all* projects you download that include it.
Reply:The video has an issue in step3. Look at the instructions at http://msdn.microsoft.com/vstudio/expres... and specifically step 3 to set the include path.


Fatal Error C1083


Error Message


Cannot open filetype file: 'file': message


To fix by checking the following possible causes


File does not exist.


File, subdirectory, or disk is read-only.


No access permission for file or directory.


Not enough file handles. Close some applications and recompile.


The INCLUDE environment variable is set incorrectly.


An #include directive uses double quotation marks around a path specification, which causes the standard directories to be skipped.


You did not specify /clr and your program uses CLR constructs.


You attempted to compile a single file in the project without first compiling stdafx.cpp. Before you can compile a single file in the project, you need to compile stdafx.cpp. In the case of the /analyze (Enterprise Code Analysis) compiler option, you will need to use the same /analyze setting for stdafx.cpp that you use for the .cpp file.


the following sample generates C1083:





Copy Code


// C1083.cpp


// compile with: /c


#include "test.h" // C1083 test.h does not exist


#include "stdio.h" // OK








Hope this helps!


ctc


No comments:

Post a Comment