xxxxxx.exe 不是有效的 Win32 应用程序 [英] xxxxxx.exe is not a valid Win32 application

查看:41
本文介绍了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 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆