“is not a valid win32 application” on windows xp

回眸只為那壹抹淺笑 提交于 2019-12-13 02:19:56

问题


Phenomenon:

Build a c++ program using visual studio express 2015 on windows 7 platform. Copy the executable file to xp system, cannot run with the error"not a valid win32 application"

Have tried two things

  1. go to "configuration properties" and set the "Platform Toolset" to "visual studio 2015 - windows xp(v140_xp)"

  2. go to "configuration Manager" and set the Platform to "Win32" (instead of x64) after these steps, still gives me same problem.

anyone knows what is the root cause of this problem? thank you!


回答1:


The main problem is the Windows SDK that you are using.

Most recent Windows SDK have a compatibility list that will go far back to Windows 7.

Here are two useful links: https://blogs.msdn.microsoft.com/vcblog/2015/07/24/setup-changes-in-visual-studio-2015-affecting-c-developers/ Targetting Windows xp from visual studio 2015 enterprise update 1



来源:https://stackoverflow.com/questions/36314217/is-not-a-valid-win32-application-on-windows-xp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!