www.Walzer.cn - Tech & Management Blog

Focus on mobile dev
本博客文章,未在标题中写明转载的, 均为原创.
所谓高手,也就是熟悉别人制定的游戏规则、并且能在规则内跳舞的人。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

WM上的use MFC in a Shared DLL

Posted on 2009-10-12 11:48  Walzer  阅读(1028)  评论(3编辑  收藏  举报

http://msdn.microsoft.com/en-us/library/ms180763(VS.80).aspx
If you change Use of MFC from Use MFC in a Shared DLL (the default) to Use MFC in a Static Library, you should also remove mfc80ud.dll (Debug) and/or mfc80u.dll (Release) from Additional Files in the General section of the Deployment property page.

Likewise, if you change Use of MFC from Use MFC in a Static Library to Use MFC in a Shared DLL, you should also add mfc80ud.dll (Debug) and/or mfc80u.dll (Release) to Additional Files in the General section of the Deployment property page.

When adding mfc80u.dll or mfc80ud.dll you must also add atl80.dll and msvcr80.dll or msvcr80d.dll.

也就是说, WM机器上并不直接带有MFC的DLL, 如果你想用做DLL方式, 那么就得自己下载mfc80u.dll, atl80.dll, msvcr80.dll到手机上. 这几个文件加起来有917KB之巨.
不过比较奇怪的是,在WM6模拟器上,不下载这几个MFC DLL程序也能跑.
而不论在模拟器或WM 6.1真机上, \windows目录下都有一个叫mfcce300.dll的文件,既然要求我们另外下载MFC DLL, 那么这个文件又是干什么用的……