消息“不是有效的Win32应用程序”对于由VC#2012创建的程序 [英] Message of "is not a valid Win32 application" for a program created by VC# 2012

查看:412
本文介绍了消息“不是有效的Win32应用程序”对于由VC#2012创建的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为标题,我使用VC#2012创建了一个程序,该程序在64位Windows平台上运行良好。但是当我在POSReady 2009上运行它,它与WinXP 32位相同时,我得到xxx不是一个有效的Win32应用程序错误消息。

我检查了我的VC#设置:项目属性 - >构建 - >平台目标,

或者我选择任何CPU +首选32位或x86,我得到了相同的错误信息。

有很多关于这样的讨论一种错误消息,但它们都不适合我的情况。

As title, I created a program using VC# 2012, which runs well at 64-bit Windows platoform. But when I ran it at POSReady 2009, which is same as WinXP 32-bit, I got "xxx is not a valid Win32 application" error message.
I checked my setting of VC#: Project properties --> Build --> Platform target,
either I chose "Any CPU + Prefer 32-bit" or "x86", I got the same error message.
There are lots of discussion about such kind of error message, but none of them fits my situation.

推荐答案

检查你正在使用的DLL:如果它们中的任何一个是64位,它可能是系统尝试加载它们失败。
Check the DLLs you are using: if any of them are 64 bit, it could be that when the system tries to load them it them fails.


这篇关于消息“不是有效的Win32应用程序”对于由VC#2012创建的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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