How to run vc++ .exe file where MS Visual Studio is not installed?
I developed one application in vc++(console) in Visual Studio 2008 开发者_StackOverflow. Now, how can I run its .exe where Visual Studio is not installed? Thank you.
You need something like the VC++ 2008 redistributable package - http://www.microsoft.com/downloads/details.aspx?familyid=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en
Just ship the package as part of your application installation and deploy it on the target machines.
The whole point of Visual Studio is to create standalone programs. As long as the machine you'll run the app on all the DLLs and such that the app requires (and has a compatible .net Framework version installed, if you created a C++/CLI app), the exe file should run just fine.
You should be able to just copy the contents of the output directory (where the .exe is) onto another machine and run it. You may want to look into creating a setup project / installer, though, if you intend for lots of people to use it.
精彩评论