Use on other computers

Sargie93 used Ask the Experts™
Okay so I've made my program, it all works fine, but I was wondering if there is any way I can use it on a different computer without C++? I put the files onto a memory stick, copied them to another computer and tried to run the .exe, but it doesn't work.

Any advice?

Thank you.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2012
Well, first you need to make sure that you are creating a Release build (Check that the combo box in Visual Studio reads "Release", not "Debug), From here you now have two options: Create a staticaly linked executable that does not require any additional DLLs or installing the runtime DLLs on the target machine,

For the 1st one, open your project's properties (ALT+F7), go to "Configuration Properties|C++|Code Generation" and change "Runtime Library" to "Multithreaded (/MT)" (as opposed to "Multithreaded DLL"). The executable will considerably increase in size, don't worry about that.
For the 2nd option, go to ("Latest Supported Visual C++ Download"), then to ("Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)") - or to which one is applicable - download the installer and run it on the target machine,

what are the errors you are getting, perhaps you need to install some frameworks?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial