Click here to Skip to main content
15,893,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

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.
 
Share this answer
 
Comments
Stan Huang 2-Mar-15 10:01am    
How to check DLLs I'm using? I just built an application and don't know what DLLs it's using.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900