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...