AtomicGoat

I'm a novice programmer of C++ and a newcomer to VC++. When I compile my console applications I can normally execute them directly using the .exe file found in ...projects/file_name/debug. However when I've tried to execute them on other machines they don't seem to work.

I am using a 64bit Vista platform and the others I've tried it on (and failed) are 64bit XP but I wouldn't have thought that that would make a difference.

Any ideas



Re: Visual C++ General .exe wont work on other machines

Bruno van Dooren

There are 2 things wrong:

- debug build depend on components that are only installed with VStudio. If the target machine doesn't have that, your app cannot run. You are not allowed to distribute those components.

- Your application uses runtime DLLs that are not installed by default on XP. Do a forum search for vcredist and you will get the entire explanation.

If you had taken only 5 minutes of time to do a google search you would already have found your answer. There is nothing inherently wrong with trying to find an answer for yourself.





Re: Visual C++ General .exe wont work on other machines

AtomicGoat

So is there a different way of building my applications which would be more universally executable




Re: Visual C++ General .exe wont work on other machines

Simple Samples

AtomicGoat wrote:
However when I've tried to execute them on other machines they don't seem to work.

Please be specific when asking questions. Specifically, when saying things such as "don't work", provide the error message (the entire message) if there is one. If there is not an error message, specify what happens that is not supposed to happen or what does not happen that is supposed to happen.

The following will probably help. There is a lot to read and eventhough you don't need to read all of it, it will help for you to read as much as possible. The relevant portions of the VS topic is important for understanding.