EDN Admin
Well-known member
Hello,
Im desperately trying to set up my directX SDK with visual studio C++ express 2010. I have the directX SDK installed. Ive been following multiple tutorials, and heres where Im at:
In the properties for my project, when I go to Configuration Properties -> VC++ Directories, I have $(DXSDK_DIR)Include;$(IncludePath) in my include directories and $(DXSDK_DIR)Libx86;$(LibraryPath) in my source directories. And under Linker
-> input, I have dxerr.lib;dxguid.lib;d3dx9.lib;d3dx10.lib;d3d9.lib;%(AdditionalDependencies) for Additional Dependencies. And this is set to all configurations. And for some reason, when I go to my Solution Explorer, my External Directories folder
is completely empty. No folder at all. And when I try to add a main file and add the following code:
#include "systemclass.h"<br/>
<br/>
<br/>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline, int iCmdshow)<br/>
{<br/>
<span style="white-space
re SystemClass* System;<br/>
<span style="white-space
re bool result;<br/>
<span style="white-space
re <br/>
<span style="white-space
re <br/>
<span style="white-space
re // Create the system object.<br/>
<span style="white-space
re System = new SystemClass;<br/>
<span style="white-space
re if(!System)<br/>
<span style="white-space
re {<br/>
<span style="white-space
re return 0;<br/>
<span style="white-space
re }<br/>
<br/>
<span style="white-space
re // Initialize and run the system object.<br/>
<span style="white-space
re result = System->Initialize();<br/>
<span style="white-space
re if(result)<br/>
<span style="white-space
re {<br/>
<span style="white-space
re System->Run();<br/>
<span style="white-space
re }<br/>
<br/>
<span style="white-space
re // Shutdown and release the system object.<br/>
<span style="white-space
re System->Shutdown();<br/>
<span style="white-space
re delete System;<br/>
<span style="white-space
re System = 0;<br/>
<br/>
<span style="white-space
re return 0;<br/>
}
it brings up the error >c:usersadildocumentsvisual studio 2010projectsreally getting pissedreally getting pissedmain.cpp(4): fatal error C1083: Cannot open include file: systemclass.h: No such file or directory
Help would be appreciated! If you need the project file, please post!
View the full article
Im desperately trying to set up my directX SDK with visual studio C++ express 2010. I have the directX SDK installed. Ive been following multiple tutorials, and heres where Im at:
In the properties for my project, when I go to Configuration Properties -> VC++ Directories, I have $(DXSDK_DIR)Include;$(IncludePath) in my include directories and $(DXSDK_DIR)Libx86;$(LibraryPath) in my source directories. And under Linker
-> input, I have dxerr.lib;dxguid.lib;d3dx9.lib;d3dx10.lib;d3d9.lib;%(AdditionalDependencies) for Additional Dependencies. And this is set to all configurations. And for some reason, when I go to my Solution Explorer, my External Directories folder
is completely empty. No folder at all. And when I try to add a main file and add the following code:
#include "systemclass.h"<br/>
<br/>
<br/>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline, int iCmdshow)<br/>
{<br/>
<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<br/>
<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<br/>
<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<br/>
<span style="white-space

}
it brings up the error >c:usersadildocumentsvisual studio 2010projectsreally getting pissedreally getting pissedmain.cpp(4): fatal error C1083: Cannot open include file: systemclass.h: No such file or directory
Help would be appreciated! If you need the project file, please post!
View the full article