Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

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
0
iyanovsk
Asked:
iyanovsk
2 Solutions
 
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 GherguCommented:
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
 
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now