My Own Created .exe file didn't run on other computers

Sir I've Recently compiled a code, It runs on my Computer but didn't run on my friends computer...
What is the procedure to make an executable file which runs on other computers.. which have WINDOWS...
I've compiled this code in Visual Studio 2010..
Please Give me Solution...
It could be that you are relying on a .dll with the compilation and therefore your friend will not be able to run it without this .dll, to get round this go to

Project>Properties>Configuration Properties>C/C++>Code Generation>Runtime Library

and change the drop down to Multi-threaded Debug (/MTd) this will mean that you can run the application without the .dll and with just the .exe

if you get stuck heres a video on it:

http://www.youtube.com/watch?annotation_id=annotation_246612&feature=iv&src_vid=ROAhEY7D5Cw&v=AvrjQtFBJvk
Thanks a lot Sir...
Topic archived. No new replies allowed.