【问题标题】:What do I need to do to program an MFC/STL program in Visual Studio?在 Visual Studio 中编写 MFC/STL 程序需要做什么?
【发布时间】:2019-09-22 13:43:48
【问题描述】:

我在私人电脑上安装了 Visual Studio,版本是“Microsoft Visual Studio Community 2019”,版本 16.1.6。

为了准备工作面试,我想做一些基本的 MFC/AFX 编程,从 the Microsoft website 的基本 CMapStringToString 示例开始。 但是,这似乎不起作用,因为我无权访问提到的文件afxcoll.h。确实:我的 PC 上没有名为 afx*.h 的文件。

这是我免费下载的 Visual Studio 安装的限制,还是我可以安装任何加载项、加载项、扩展或任何东西来使用 CMapStringToString 对象?

提前致谢

【问题讨论】:

    标签: visual-studio mfc visual-studio-2019 afx


    【解决方案1】:

    您需要在 Visual Studio 中显式安装 MFC 支持 - 您可以在社区版本中执行此操作:

    1. 从“开始”菜单打开 Visual Studio 安装程序
    2. 点击修改按钮
    3. 选择单个组件标签
    4. 向下滚动到 SDK、库和框架
    5. 检查各种平台的各种 MFC/ATL 选项

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-11-24
      • 2012-02-28
      • 1970-01-01
      • 2016-06-07
      • 2012-11-22
      • 1970-01-01
      • 2020-10-20
      • 2011-05-21
      相关资源
      最近更新 更多