我通过 Visual Studio 2013
32 位创建了一个简单的 MFC
应用程序。
然后,当在 Windows XP 上测试时,我发现它不起作用,并显示错误消息 该应用程序不是有效的 win32 应用程序
。
请注意,该应用程序在 Windows 7 中运行良好。
出了什么问题?
最佳答案
对于每个想要直接解决方案的人,请尝试应用以下步骤。
步骤:
- 右键单击项目并选择属性。
- 一般。
- 平台工具集。
- 选择 Visual Studio 2013 - Windows XP (v120_xp)。
另外,您可以查看这篇 MSDN 文章 Windows XP Targeting with C++ in Visual Studio 2012以获得更多帮助。
关于c++ - 使用 Visual Studio 2013/2015 及更高版本在 MFC 应用程序中以 Windows XP 为目标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26938477/