xxxxxx.exe is not a valid Win32 application

后端 未结 8 1570
甜味超标
甜味超标 2020-11-30 02:03

I have small C/C++ project in Visual Studio 2012 RC

This applications parses the argv and then calling another .exe file with ShellExecute

My ap

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 02:24

    It's Feb 2013, and I can now target XP in VS2012 by setting:

    Project Properties -> General -> Platform Toolset to:

    Visual Studio 2012 - Windows XP (v110_xp)

    You will have to redistribute the msvcp110.dll libraries et al with your application, which are found here: "\Microsoft Visual Studio 11.0\VC\redist\x86\Microsoft.VC110.CRT\"


    Update Aug 2015 with Visual Studio 2015

    There seems to be quite a selection now. I was able to compile application in VS2015 using Visual Studio 2015 - Windows XP (v140_xp) setting. To make it actually run on Win XP I had to deploy (copy alongside application) msvcr100.dll for Release build and msvcr110.dll and msvcr100d.dll for Debug build (note there is a difference in numbers 100 and 110, also debug lib msvcr100d.dll may not be redistributable)

提交回复
热议问题