首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在Visual 2019上安装MFC

如何在Visual 2019上安装MFC
EN

Stack Overflow用户
提问于 2020-08-20 06:50:09
回答 1查看 11.6K关注 0票数 4

我使用以下扩展在Windows x64操作系统上安装了VS 2019版本16.7的MFC扩展:

  1. 桌面应用程序开发用c++
  2. C++ v14.26 MFC for v142 build tools (x86 & x64)
  3. C++ v14.26 MFC for v142 build (x86 &x64)

ATL用于构建工具h 19ATL和MFC用于build tools H 210G 211

但是,当我打开一个新的MFC项目并尝试构建它时,即使在编辑之前,我也会得到以下错误:MSB804: Severity Code Description Project File Line Suppression State Error MSB8041 MFC libraries are required for this project. Install them from the Visual Studio installer (Individual Components tab) for any toolsets and architectures being used. MFCApplication1 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets 451

我不知道在这一点上可能缺少什么库,我以为我已经安装了所有可能的扩展。也许有人知道我做错了什么,或者我错过了什么图书馆?

非常感谢。

EN

Stack Overflow用户

发布于 2022-04-13 09:26:34

代码语言:javascript
运行
复制
Open Visual Studio Installer - > Modify - & gt; 
For a single component, select install:
    C++ATL for v142 (x86 and x64)
    C++MFC for v142 (x86 and x64)
    C++ v14.21 ATL for v142 (x86 and x64)
    C++v14.21 MFC for v142 (x86 and x64)

If the same error still occurs, install
    C++ATL for the latest v142 build tools
    C++ MFC for the latest v142 build tool
票数 1
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63499717

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档