How do i run a C++ exe file on a computer without visual studio?
2009-04-07 19:26:05 UTC
I have a program as a project and it wont run on a computer without visual studio
anyone have a solution to maybe making it an application exe or some way of doing that
im just so stumped
Four answers:
zoot661
2009-04-11 14:33:42 UTC
you have to make sure that you have made a release rather than a debug build
The debug build is the default for visual studio projects
The debug build requires dll's that are not licensed for redistribution by microsoft
meow
2009-04-07 22:12:28 UTC
Don't know exactly what you're having a problem with.
If you're having problems making an exe, just hit build solution and look in your top level project directory for the "release" directory. The exe should be there and can be redistributed.
Next, if you're having problems running the just-built exe on other machines, you need the visual c++ run-time libraries. This is very subtle (used for mfc, stl, atl, etc. functions). Download the visual c++ 2005 or 2008 (or etc.--whatever you have developed on) run-time redistributable libraries from microsoft. They'll install the correct dll's on the target machine for you app to run correctly.
PS: the run-time redistribution package comes with MSVS and MSVC. (Should be on your cd or in your installation).
Good luck.
nahid
2016-10-14 04:31:36 UTC
ok, seen C++ is almost perplexing, and that i in my opinion experience Microsoft does not do a sturdy interest of starting to be this sparkling in seen Studio: There are 2 *completely* distinctive variations of C++ in seen C++. First is C++/CLI. this is particularly plenty the single that Microsoft places out front. it somewhat is "controlled code" which potential it runs in a digital device like C# or Java. Bytecode (MS calls it CIL), memory-administration, seen GUI editor, and so on. Now the 2nd is ISO/ANSII C++. this is *community* C++. It particularly compiles the code directly to device language, only like GCC, or the different C++ compiler could. there is no digital device, you need to manage your guy or woman memory, use Qt for GUIs, and you lose a sturdy style of seen Studio valuable properties (like Intellisense does not even artwork 50% besides, because of the fact it does not have the metadata), and so on. What this mistake potential is you used C++/CLI. It calls for the .internet runtime for the tip-consumer to run your software. They require a version equivalent to or greater than the version you based at the same time as writing the code. If he is going to the Microsoft internet site and downloads the maximum recent .internet kit, he would be advantageous to run it. in case you do no longer decide to require a runtime or downloads to run your application, you will ought to verify you're making use of ISO/ANSII C++ and not C++/CLI. they are completely distinctive, and MS does not do a sturdy interest of distinguishing them.
halrosser
2009-04-07 19:33:36 UTC
You must have a c++ DOT-NET program.
No Problem - just install the dot-net framework on the computer you want to run it on.