有一个以前的MFC 工程代码,用VS2013 进行编译的时候发现了一个错误如下
错误 1 error MSB8031: Building an MFC project for a non-Unicode character set is deprecated. You must change the project property to Unicode or download an additional library. See http://go.microsoft.com/fwlink/p/?LinkId=286820 for more information. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets 369 5 FireWallDlgV2
经过查找,问题出在微软把用于多字节字符编码 (multi-byte character set )的 MFC 库 (DLL) 不再包含于 Visual Studio 中,但是可作为VS2013 的插件使用
可以去http://www.microsoft.com/zh-cn/download/details.aspx?id=40770 这里下载这个插件来扩展VS2013 对于MFC库的支持
支持的名字叫做 Multibyte MFC Library for Visual Studio 2013
这样就可以解决问题了!