user919428
user919428

Reputation:

Invalid Win32 program with C runtime libs 2011 on WinXP

I have compilled program in Visual Studio 2011 on Windows consumer preview with v110 toolkit (c runtime 2011) and it refuse to run on Windows XP even with needed runtime dlls for 2011 libs (from VC/redist/) folder. It says that file is not valid Win32 app. How I can get that app to run on XP?

Upvotes: 3

Views: 1277

Answers (4)

Michael Burr
Michael Burr

Reputation: 340306

The VS 11 Beta does not support Windows XP as a target platform (or as a development platform, just to be complete).

There have been some statements from Microsoft personnel that this might change for RTM.

But I wouldn't hold my breath.

If you're adventurous, here's an article that describes in detail how you can create your own library that will smooth over the things that prevent the runtime library from allowing an application to load on WinXP:

Update (15 June 2012):

Microsoft has reconsidered not allowing VC++ 2012 to target Window XP. Unfortunately the decision came too late to allow targeting WinXP to be supported in RTM, so you'll have to wait for a subsequent update:

Upvotes: 5

vs11xp
vs11xp

Reputation: 11

Applications compiled with Visual Studio 11 do not run on XP. Please vote for this request -- perhaps Microsoft will realize their mistake then.

Upvotes: 1

Konrad
Konrad

Reputation: 41007

Unfortunately there are changes to the PE version as well as the CRT for Visual Studio 2011 which means, even with binary modification (yuk) XP is not supported. To quote the answer from Microsoft:

Visual Studio 11 Beta doesn't support Windows XP. As to Visual Studio 11 final release, there's no such information published yet. We will refer to the official website for supported OS.

Upvotes: 0

ApprenticeHacker
ApprenticeHacker

Reputation: 22031

Use a 32-bit cross-compiler, or rebuild the app on Windows XP for 32-bit.

Upvotes: 0

Related Questions