Using .exe files from Visual C++ on other computers?

Hi there,

So after programming all these successful project programs in Visual C++, is there a way to get the executable files in the project debug folder to work on other computers that do not have a compiler installed on their computer?

I have searched the web and found Microsoft instructions on how to deploy these files on other computers that do not have a compiler. The instructions don't match the option and menus in the trial versions. Are these instructions for the full versions and not the trial versions?

Does anyone know how to get the executable files to work on other computers that do not have compiler software? Or, is anyone familiar with this process? I just don't want to install the software to get the files to work on other computers.

When I copy the executable file to another computer and try to run it, it gives me a message about "MSVCP100D.dll" sound familiar?? Any help would be greatly appreciated......
Last edited on
You need to statically link to the standard library, you should also compile in Release mode
Hey Bazzy, thanks for the reply. :-) How do you statically link to the standard library?
Will just the release mode do the trick?
No, you need to do both.
For VC++ 2008 is:
Project > Properties > Configuration Properties > C/C++ > Code Generation > RunTime Library > Multy threaded (/MT)

If you have 2010, I don't know but it shouldn't be much different
Hey Bazzy....you are the man!!Hey thanks a lot for your help! That worked like a charm! I did it in VS C++ 2010 same as 2008. The only thing is you have to remember to put the:
system("pause"); // Pause for executable files"
in the program where ever there is a return statement in order for the program to function properly on other computers that don't have compilers. Is that the only way to get the program to work properly by using the system pause in the code where needed? I can't imagine any other way of doing it?
Last edited on
See this: http://www.cplusplus.com/forum/articles/7312/
The best way is the cin one, notice that if you used cin >> in your code you'll have to clear the last newline or it won't work
Thanks for the link! Wow, Duaos really gave a long list of options! This is great, I'll give it a shot and try it out, and I will get back to you with some other questions. Thanks....:-)
Topic archived. No new replies allowed.