积极答复者
VS2008生成的MFC程序无法在XP下运行

问题
-
开发环境:Windows 7 Enterprise 64-Bit 英文版
Visual Studio Team System 2008 Team Suite SP1 英文版
部署环境:Windows XP Professional SP3 英文版(虚拟机)
在Application Wizard中的选项为:Use Unicode Libraries、Use MFC in a static Library
编译配置为Release Win32
将生成的EXE文件拷贝到XP虚拟机后,双击执行,弹出错误对话框,大意是:应用程序配置不正确
我觉得是Unicode的问题,如果在Application Wizard中去掉Use Unicode Libraries,则上述症状消失
我曾看到过一篇文章,说从Vista开始支持Unicode5.0,和这个有关系吗?
请问这是怎么回事?如何解决?谢谢!
答案
全部回复
-
你好!
这个错误一般都是由于缺少必要的动态库引起的。如果想直接拷贝exe文件到目标机器上,目标机器上需要安装Visual C++的动态库。具体细节,请参考MSND的文章:
Preparing a Test Machine To Run a Debug Executable
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.