xxxxxx.exe is not a valid Win32 application(xxxxxx.exe 不是有效的 Win32 应用程序)
问题描述
我在 Visual Studio 2012 RC 中有一个小的 C/C++ 项目
I have small C/C++ project in Visual Studio 2012 RC
此应用程序解析 argv,然后使用 ShellExecute
This applications parses the argv and then calling another .exe file with ShellExecute
我的应用程序在 Windows7 上运行良好,但在 Windows XP x86 上 trhows 不是有效的 Win32 应用程序错误.
My application works perfect on Windows7 but on Windows XP x86 trhows Is not a valid Win32 application error.
我用多线程(/MT)和Win32平台编译过
I have compiled it with Mutli-thread(/MT) and Win32 Platform
这是我的#includes
This is my #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>
谢谢
推荐答案
VS 2012 应用程序无法在 Windows XP 下运行.
VS 2012 applications cannot be run under Windows XP.
请参阅此 VC++ 博客为什么以及如何使它起作用.
See this VC++ blog on why and how to make it work.
似乎从 2013 年 2 月开始支持/可能.请参阅下面的 noelicus 回答,了解如何操作.
It seems to be supported/possible from Feb 2013. See noelicus answer below on how to.
这篇关于xxxxxx.exe 不是有效的 Win32 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:xxxxxx.exe 不是有效的 Win32 应用程序


- 使用/clr 时出现 LNK2022 错误 2022-01-01
- 近似搜索的工作原理 2021-01-01
- C++ 协变模板 2021-01-01
- 静态初始化顺序失败 2022-01-01
- 如何对自定义类的向量使用std::find()? 2022-11-07
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- Stroustrup 的 Simple_window.h 2022-01-01
- 从python回调到c++的选项 2022-11-16
- STL 中有 dereference_iterator 吗? 2022-01-01