WinCE6添加对MFC的支持
WinCE6默认情况下不支持MFC,在PB里面也没有与其有关的组件可以添加。要想让WinCE6支持MFC,就要手动拷贝一些DLL,然后修改bib文件,把这些需要的DLL打包进NK。
需要的DLL在\Program Files\Microsoft Visual Studio 8\VC\ce\Dll\armv4i下可以找到。下面是我打包进NK的DLL。
在bib文件中添加:
MFC80ENU.DLL $(_FLATRELEASEDIR)\MFC80ENU.DLL NK SH
atl80.dll $(_FLATRELEASEDIR)\atl80.dll NK SH
MFC80CHS.DLL $(_FLATRELEASEDIR)\MFC80CHS.DLL NK SH
msvcr80d.dll $(_FLATRELEASEDIR)\msvcr80d.dll NK SH
msvcr80.dll $(_FLATRELEASEDIR)\msvcr80.dll NK SH
MFC80UD.DLL $(_FLATRELEASEDIR)\MFC80UD.DLL NK SH
MFC80U.DLL $(_FLATRELEASEDIR)\MFC80U.DLL NK SH