A program created on Win7 will not work on WinXP

I have a project that I create on Windows 7 (32-bit) using Visual Studio 2005. The program works fine, and I can move it to another machine under Windows 7 and run it just fine. The problem occurs when I try to move it to a computer running Windows XP Pro. When I try to run the file, I get the following error:

"This application failed to start because the application configuration was incorrect. Re-installing the application may fix this problem."

When I open the event viewer, there are three system errors associated with this problem:

  • The dependent assembly Microsoft.VC80.CRT was not found and the last error was The linked assembly was not installed on your system.
  • Partial build failed for Microsoft.VC80.CRT. message Link error: link assembly not installed on your system.
  • Failed to create activation context for [path to my exe]. Link error message :. Operation completed successfully

I tried installing the Visual C ++ 2005 Redistributable Package Service Pack 1 (SP1), which does not help.

If I create a project on a computer with XP, I can run it on another computer running XP (which does not have a C ++ distribution) and a computer running Windows 7.

Always build on XP is not a viable option, since I'm not the only person who will build it, and everyone else will use Win7.

+5
5

, :

: "C:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT" ( , ) , .exe, . , .

0
+1

, Visual Studio Visual Studio 2005 SP1. MFC CRT.

, Dependency Walker (http://www.dependencywalker.com/).

, Windows . Visual Studio 2005 SP1.

Visual Studio 2005 http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=14431

Visual Studio 2005 SP1 http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=5638

.

0

- .NET, . , .NET. Visual ++ .NET.

-1

, , , API , .

:

  • , . , . , , , .

  • create your software once for each system on which you intend to deploy it. This works more, but means you can customize your software to take advantage of the new APIs and features, as they are available for different versions of the platform iterations.

-3
source

All Articles