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-spacere SystemClass* System;<br/>
<span style="white-spacere bool result;<br/>
<span style="white-spacere <br/>
<span style="white-spacere <br/>
<span style="white-spacere // Create the system object.<br/>
<span style="white-spacere System = new SystemClass;<br/>
<span style="white-spacere if(!System)<br/>
<span style="white-spacere {<br/>
<span style="white-spacere return 0;<br/>
<span style="white-spacere }<br/>
<br/>
<span style="white-spacere // Initialize and run the system object.<br/>
<span style="white-spacere result = System->Initialize();<br/>
<span style="white-spacere if(result)<br/>
<span style="white-spacere {<br/>
<span style="white-spacere System->Run();<br/>
<span style="white-spacere }<br/>
<br/>
<span style="white-spacere // Shutdown and release the system object.<br/>
<span style="white-spacere System->Shutdown();<br/>
<span style="white-spacere delete System;<br/>
<span style="white-spacere System = 0;<br/>
<br/>
<span style="white-spacere 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-spacere SystemClass* System;<br/>
<span style="white-spacere bool result;<br/>
<span style="white-spacere <br/>
<span style="white-spacere <br/>
<span style="white-spacere // Create the system object.<br/>
<span style="white-spacere System = new SystemClass;<br/>
<span style="white-spacere if(!System)<br/>
<span style="white-spacere {<br/>
<span style="white-spacere return 0;<br/>
<span style="white-spacere }<br/>
<br/>
<span style="white-spacere // Initialize and run the system object.<br/>
<span style="white-spacere result = System->Initialize();<br/>
<span style="white-spacere if(result)<br/>
<span style="white-spacere {<br/>
<span style="white-spacere System->Run();<br/>
<span style="white-spacere }<br/>
<br/>
<span style="white-spacere // Shutdown and release the system object.<br/>
<span style="white-spacere System->Shutdown();<br/>
<span style="white-spacere delete System;<br/>
<span style="white-spacere System = 0;<br/>
<br/>
<span style="white-spacere 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