MS Visual Studio 2005, Visual C++: Executables do not run on other computers.

I'm using Visual Studio 2005 environment to compile my C++ programs on Windows XP.  I noticed that the executables do not run on other Windows XP based computers (i.e. I get an error that the application can not run).  I also noticed that Visual C++ 2005 generates much smaller executables (about 5 to 8 times smaller) than Visual C++ 2003.  I believe that Visual Studio 2005 uses some libraries that are not linked during compilation.  I tried to change a couple of settings in Visual Studio 2005, but did not succeed.  Do you know what I can change so that the executables run on other Windows machines?

Thank You
iyanovskAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AlexFMCommented:
The following file contains VC++ 8.0 runtime and must be installed on client computer:

Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86\vcredist_x86.exe
0
Eduard GherguLeader SibiuCommented:
Hello!

If you have developed the applications using managed code, you have to deploy also the .NET Framework 2.0 because VS 2005 need it.
For Win32 target applications, you have to deploy the redistributable runtime files as AlexFM already mentioned.

Anyway, from your description I'm almost conviced that your executable is compiled as managed code (/clr option in Project Settings), so the first case is more appropriate for you.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
iyanovskAuthor Commented:
Thank You,

   I tried both proposed solutions, and both worked.  However, the patch  vcredist_x86.exe  works in most cases.  For some cases, when /clr options are changed, this does not work.  Installing the MS .NET Framework 2.0 always fixes the problem.

Thank You for your help!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual C++.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.