VS2012编译出来的程序,在XP上运行,出现“.exe 不是有效的 win32 应用程序” “not a valid win32 application”...

news/2024/7/8 2:02:15

 

VS2012编译出来的程序,在XP上运行,出现“.exe 不是有效的 win32 应用程序” “not a valid win32 application”

 

升级vs2010到vs2012,突然发现build出来的应用程序无法运行,提示“不是有效的 win32 应用程序” or “not a valid win32 application”。

参考CSDN论坛中的方法,找到下面这篇文章:

http://blogs.msdn.com/b/vsnetsetup/archive/2012/10/16/setup-exe-is-not-a-valid-win32-application.aspx

 

You would receive the below error message while running a ClickOnce bootstrapper created using Visual Studio 2012 on Windows XP systems.

 

 

 

 

 

Clickonce bootstrapper engine (setup.exe) that was shipped with Visual Studio 2012 is NOT compatible with any OS below Windows Vista.  So, the above error message is expected and by design. The reason for this behavior is because the bootstrapper is compiled using the VC compiler and the Dev11 VC compiler does not support Windows XP.  

 

 

So the workaround is to install all the prerequisites manually and launch the ClickOnce application directly from deployment manifest file (.application). Another workaround would be to create a sample ClickOnce application using Visual Studio 2010 OR Visual Studio 2008 with the same name as mentioned in Visual Studio 2012 and publish it. From the published location take the setup.exe bootstrapper and replace the existing setup.exe bootstrapper created using Visual Studio 2012

 

 

Microsoft VC development team has done work to make VC compilers work on Windows XP in Visual Studio 2012 Update 1 CTP 3 http://www.microsoft.com/en-us/download/details.aspx?id=34818 This Visual Studio 2012 Update 1 CTP 3 patch provides an opportunity to users in building VS2012 C++ project for Win XP OS. For the users who want to develop their applications using Dev11 VC compiler (v110) for Windows XP OS, would need to install Visual Studio 2012 Update 1 CTP 3 patch.

 

 

 

文章提示,dev11 VC complier 已经不在支持XP,如果想要支持XP系统,需要更新至 VS2012 Update1,同时,在

Properties -> Configuration Properties -> General -> PlatForm ToolSet 

选择 

Visual Studio 2012 - windows XP (v110_xp)

这样compiler生成的exe文件方可在XP系统上运行。

VS2012 update1 下载参考

http://www.microsoft.com/visualstudio/eng/downloads#d-visual-studio-2012-update

转载于:https://www.cnblogs.com/Dageking/archive/2013/05/15/3079394.html


http://www.niftyadmin.cn/n/3842503.html

相关文章

空格引起的误会与深思

一直以为各浏览器空格宽度的差异是因为各浏览器对标签的解释有差异造成的。其实是由于各浏览器的默认字体不同造成的,若是不知道字体的话,在不同浏览器下空格空出来的宽度是不一样的。 转载于:https://www.cnblogs.com/xyangs/archive/2013/05/16/308156…

UTF-8 BOM

BOM——Byte Order Mark,就是字节序标记 在UCS 编码中有一个叫做"ZERO WIDTH NO-BREAK SPACE"的字符,它的编码是FEFF。而FFFE在UCS中是不存在的字符,所以不应该出现在实际传输中。UCS规范建议我们在传输字节流前,先传输…

入门从破解开始---交换机及路由器

交换机登录密码破解&#xff1a; 按住mode键加电,等待20s----出现 switch: 意味着进入到最小IOS switch: flash_init 初始化flash<读硬盘> switch: rename flash:config.text flash:xxxxxx.text 修改配置文档的文件名&#xff0c;系统就不认识以前配置&#xff0c;直接进…

页面滚动条 全局样式设置

重置滚动条样式&#xff1a; /*滚动条样式*/ ::-webkit-scrollbar {/*滚动条整体样式*/width: 4px; /*高宽分别对应横竖滚动条的尺寸*/height: 4px; } ::-webkit-scrollbar-thumb { /*滚动条里面小方块*/border-radius: 5px;-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2)…

了解ACL---通配符掩码

学习ACL&#xff0c;搞懂ACL就不能不搞定wildcard mask&#xff0c;通配符掩码。说简单点&#xff0c;通配符掩码就是0为绝对匹配&#xff0c;必须严格匹配才行&#xff0c;而1为任意&#xff0c;从某种意义上讲&#xff0c;如果一个8位上有一个1字符&#xff0c;那也只有两种方…

phpExcel输出xls文档在LINUX下显示乱码的解决办法

最近在做一些游戏报表的系统&#xff0c;主要是对excel的读取和处理操作。 之前在自己的机器上做开发的时候&#xff0c;没有出现乱码的情况&#xff0c; 即使是我布置到服务器上&#xff0c;导入&#xff0c;导出excel都没有出现乱码的情况 后来在一位同事的机器上装了下&…

TableStore多元索引,大数据查询的利器

随着互联网发展的深入&#xff0c;互联网开始下沉到各行各业进行互联网改造&#xff0c;比如进入网约车、出租车行业的滴滴&#xff0c;将出租车行业互联网化&#xff0c;改造之前&#xff0c;出租车的分布、订单轨迹、人流热度等交通数据都是直接废弃导致无法利用起来。改造之…

[LeetCode 129] - 根节点到叶子节点数字求和(Sum Root to Leaf Numbers)

问题 给定一个节点取值只包含数字0-9的二叉树&#xff0c;每条根节点至叶子节点的路径都可以表示一个数字。 例如&#xff0c;根至叶子路径1->2->3表示数字123。 求所有根至叶子数字的和。 例如&#xff0c; 1 / \ 2 3 根至叶子路径1->2表示数字12 根至叶子路径…