【发布时间】:2012-07-03 13:45:36
【问题描述】:
我在 Visual Studio 2012 RC 中有一个小型 C/C++ 项目
此应用程序解析 argv,然后使用 ShellExecute 调用另一个 .exe 文件
我的应用程序在 Windows7 上运行完美,但在 Windows XP x86 上运行不是有效的 Win32 应用程序错误。
我用多线程(/MT)和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>
谢谢
【问题讨论】:
-
您是否编译了 x64 应用程序?
-
“另一个 exe”是 64 位应用程序吗?你是否为你的 32 位环境重新编译了它?
-
@user 虽然这是一个很晚的评论,但您是否检查过是否设置了
"Configuration Properties -> Linker -> System -> Subsystem"?如果为空,请将其设置为适当的选项,在 XP 上重建并检查可执行文件。 -
@user 在检查了我上面的评论后,如果仍然出现同样的错误,install the updateMSFT 最近发布了。
标签: c++ c windows visual-studio-2012