   project's .exe doesn't run as it should
  Hi, I've been following a tutorial to make games with DirectX SDK in C++.I'm using Visual Studio 2010, just finished making a Pong game (which i modified and now it's a breakout game.The problem i'm having is when i run it from Visual Studio everything is alright and i can play the game to test it, but when i go to my project's folder/Debug and run the Pong.exe there(which it builds when i run the debug on VS) i just get a black screen. I can't tell if it's not working at all or if it's rendering stuff transparently and that's why i can't see it or wth is going on.The project led me through a lot of stuff that i made in just one .cpp file, and when i ran the .exe in the debug folder (just like im trying with pong) everything ran as it did on VS.When i got to Pong I organized my project by dividing all the code into several .cpp and some other header files. Don't know if that's got something to do with it, but that's really the mayor change/difference from previous projects (besides the more code for logic of the game itself) and now the .exe doesn't work.This is Pong running it from Visual Studiohttp://img571.imageshack.us/img571/4688/pongfromvisualstudio.jpgAnd this is what i get when i run it from the .exehttp://img13.imageshack.us/img13/1051/pongfromdebugexe.jpgAny help is appreciated.   
  When you run something inside Visual Studio, it sets the working directory to where the solution was loaded from. If you copy the exe to the same location as the .sln, does that work?Are you loading some files? Probably path related.   ;  LOL! so much time wasted with that...it didn't work where the .sln was, but it did on the folder where i have the .cpp .h and .png im loading.Thanks!   ;  I now copied all the .png files i use for my sprites into the debug folder where i was trying to run the original Pong.exe and it works now.Now what i need to do is figure out how to make it so i can distribute the game to my friends to show off :P   ;Quote:Original post by Guar0xI now copied all the .png files i use for my sprites into the debug folder where i was trying to run the original Pong.exe and it works now.Now what i need to do is figure out how to make it so i can distribute the game to my friends to show off :PAdd a new project to your solution, a "Setup Project" (thats what its called for me). Right click ont he new project and choose add->Project output and select the output from your other project (the game executable).It will automaticly detect dependancies but you will probably have to manually add the resources to the project yourself. Build it and you get a nice little installer for your game.   ;  Also note that you need to build and run the "release" version of the game. You can't, in general, distribute the debug versions.   