I have a legacy program that was written in straight C (not C++). It compiled fine using Visual C++ 6.0 and ran on a Windows XP and Windows Server 2003 machines. I recently ported it to a 64 bit machine with Windows 7 and Visual Studio 2012 (Update 2). It compiles fine there for both Win32 and x64 platforms and also runs fine on Windows 7 machines. But when I try to move the executable to an XP machine and run it I keep getting XXX.exe is not a valid Win32 application.
Project properties are:
General:Platform Toolset: Visual Studio 2012 - Windows XP (v110_xp)
General:Configuration type: Application (.exe)
C/C++:Runtime Library: Multi-threaded (/MT)
Linker:SubSystem: Windows (SUBSYSTEM:WINDOWS)
In reading the forumns it seems to indicate compiling for an XP system should work, but I'm sure not having much luck. Any suggestions would be greatly appreciated.