MFC 多字节支持

MFC multibyte support

我收到构建错误 MSB8031,我被重定向到 to Microsoft 它说

的地方

The Unicode and MBCS MFC DLLs are installed with the Desktop development with C++ workload when you select MFC and ATL support from the Optional Components pane.

我使用 Visual Studio 2017 条目上的 "change" 进入控制面板/程序和功能。

由于条目 "MFC and ATL support" 不存在,我遵循了下一个建议:

If your installation does not include these components, navigate to the File | New Projects dialog and click the Open Visual Studio Installer link.

似乎打开了完全相同的 window 并且没有名为 "MFC and ATL support" 的条目。

如何在 VS 2017 版本 15.9.12 中获得多字节支持?

请注意,"Visual C++ ATL for x86 and x64" 和 "Visual C++ MFC for x86 and x64" 都已选中,如果是这样的话。

这些步骤适用于 Visual Studio 2017。如果解决方案中有 Visual Studio 2013 项目,用 VS2017 打开,您可能会看到:

在这种情况下,您必须为 Visual Studio 2013 年而非 2017 年安装多字节支持。