使用MFC x86而不是x64? [英] use MFC x86 instead of x64?

查看:261
本文介绍了使用MFC x86而不是x64?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有一个使用Win32(32位)x86设置编译的MFC应用程序,这意味着我没有针对x64而且我不会在x64,但是当我使用installshield构建一个安装程序时,它显示了Visual C ++ MFC 12.0(x64)的依赖项。



我有2个问题我真的可以真正使用你的帮助。



1-我怎么办?在Visual Studio项目中更改为引用MFCx86而不是MFC x64。

2-我可以在installshield中删除对MFC x64的引用并将其与MFC x86一起发送吗?它还能用吗?



我真的很感谢你对这个的帮助。



非常感谢!

解决方案

如果你没有为它编译,你可以删除对x64的引用。 Installshield可能很讨厌。



为了保证一切正常,请在没有安装开发工具的干净x32机器上测试你的设置。



如果您遇到问题,请使用依赖性walker来识别它们。


这里的最佳选择似乎是使用MFC作为静态选项进行编译以及仅使用多线程/ MT开关,这可能会导致一些问题,详细描述如下:



https://social.msdn.microsoft .com /论坛/ lync / en-US / 9dc36e13-c3bd-4f47-a105-f1c68f3447ce / please-use-the-md-switch-for-afxdll-builds?forum = vcgeneral [ ^ ]

Hello everyone,

I have an MFC application that compiles using Win32 (32bit) x86 settings, meaning I have not targeted for x64 and I dont release it under x64, however when I build a setup using installshield it shows a dependency for Visual C++ MFC 12.0 (x64).

I have 2 questions I could really really use your help with.

1- How can I change in the Visual Studio project to reference to MFCx86 instead of MFC x64.
2- Can I just remove the reference to MFC x64 in installshield and ship it with MFC x86 instead? would it still work?

I really appreciate your help with this one.

Thanks a lot!

解决方案

You can remove the refernce to x64 if you havent compiled for it. Installshield can be nasty.

To be shure that all is fine, test your setup on a clean x32 machine which has no development tools installed.

If you have problems use the dependency walker to identify them.


The best option here seems to be to compile using MFC as static option as well as use only Multithreaded /MT switch, this can cause some problems which are described here in detail:

https://social.msdn.microsoft.com/Forums/lync/en-US/9dc36e13-c3bd-4f47-a105-f1c68f3447ce/please-use-the-md-switch-for-afxdll-builds?forum=vcgeneral[^]


这篇关于使用MFC x86而不是x64?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆