DirectX SDK visual studio C++ 2010 express setup help needed

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
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:pre SystemClass* System;<br/>
<span style="white-space:pre bool result;<br/>
<span style="white-space:pre <br/>
<span style="white-space:pre <br/>
<span style="white-space:pre // Create the system object.<br/>
<span style="white-space:pre System = new SystemClass;<br/>
<span style="white-space:pre if(!System)<br/>
<span style="white-space:pre {<br/>
<span style="white-space:pre return 0;<br/>
<span style="white-space:pre }<br/>
<br/>
<span style="white-space:pre // Initialize and run the system object.<br/>
<span style="white-space:pre result = System->Initialize();<br/>
<span style="white-space:pre if(result)<br/>
<span style="white-space:pre {<br/>
<span style="white-space:pre System->Run();<br/>
<span style="white-space:pre }<br/>
<br/>
<span style="white-space:pre // Shutdown and release the system object.<br/>
<span style="white-space:pre System->Shutdown();<br/>
<span style="white-space:pre delete System;<br/>
<span style="white-space:pre System = 0;<br/>
<br/>
<span style="white-space:pre 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
 
Back
Top