我在 Visual Studio 2012 RC 中有一个小型 C/C++ 项目
该应用程序解析 argv,然后使用以下命令调用另一个 .exe 文件ShellExecute
我的应用程序在 Windows 7 上运行完美,但在 Windows XP x86 上抛出“不是有效的 Win32 应用程序”错误。
我已经用多线程(/ MOUNT)和Win32平台编译了它
这是我的#includes
#include <string>
#include <iostream>
#include <Windows.h>
#include <fstream>
#include <cstdio>
#include <vector>
#include <windowsx.h>
#include <shlobj.h>
#include <stdio.h>
#include <tchar.h>
#include <direct.h>
Thanks
现在是 2013 年 2 月,我现在可以通过设置在 VS2012 中以 XP 为目标:
项目属性 -> 常规 -> 平台工具集 to:
Visual Studio 2012 - Windows XP (v110_xp)
您必须将 msvcp110.dll 库等与您的应用程序一起重新分发,这些库可在此处找到:"<Program Files>\Microsoft Visual Studio 11.0\VC\redist\x86\Microsoft.VC110.CRT\"
使用 Visual Studio 2015 于 2015 年 8 月更新
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)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)