且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 Visual Studio 构建 MFC C++ 项目时出现 MBCS 错误

更新时间:2021-10-11 23:25:20

此错误消息是由于缺少 MBCS MFC 包.从 Visual Studio 2013 开始,MFC 库的 MBCS 部分已从 Visual Studio 产品中分离出来,单独下载.安装这个包并重建应该可以解决问题.

This error message is due to the missing MBCS MFC package. Starting with Visual Studio 2013, MBCS portion of the MFC library has been broken out of the Visual Studio product into its own separate download. Installing this package and rebuilding should fix the problem.

  • 可在此处
  • 下载
  • 提供有关此更改的更多信息 这里

Visual Studio 2015 更新

从 Visual Studio 2015 开始,整个 MFC C++ 库(包括 MBCS 部分)都是可选的安装组件.安装VS2015时,如果选择C++和MFC,也会得到MBCS库.

Starting with Visual Studio 2015, the entire MFC C++ library (including the MBCS pieces) is an optional install component. While installing VS2015, if you select C++ and MFC, you will also get the MBCS library.