mfc - 我在 VS-2019 中缺少添加新项目 Add "MFC Class From Typelib"

标签 mfc com visual-studio-2019

我已经为我的 VS-2019 Porfessional 安装了所有 MFC 的东西。

我想念以前版本中用于创建简单 IDispatch 包装器的添加新项“来自 Tyspelib 的 MFC 类”。

我检查了所有内容,并安装了与 VS-2017 相同的东西。我在 VS-2017 版本中看到了这一点。

我错过了什么?

最佳答案

许多向导,包括那个,已从 VS2019 中删除。
发行说明说:

Deprecations - Visual Studio 2019

  • The following C++ ATL/MFC wizards are no longer available: ATL COM+ 1.0 Component Wizard, ATL Active Server Pages Component Wizard, ATL OLE DB Provider Wizard, ATL Property Page Wizard, ATL OLE DB Consumer Wizard, MFC ODBC Consumer, MFC class from ActiveX control, and MFC class from Type Lib. Sample code for these technologies is archived at Microsoft Docs and the VCSamples GitHub repository.


这些更改从 VS2017 ver 15.3 开始。
更改始于此版本,但未完成任何一致的行为。
Add ATL Simple Object in Visual Studio 2017
如果你可以用 VS2017 的最新版本 15.9.13 做你想做的,你应该在那里工作并移植到 VS2019。
此外,有些工作在 15.9.13 中是不可能的。在这种情况下,您需要通过以下方式使用旧版本并移植到 VS2019
  • 用户注册 https://visualstudio.microsoft.com/
  • 如果您有 MSDN 订阅,请下载并安装下面的产品版本,否则使用社区版本。
  • Visual Studio 2017(版本 15.0)(注意:不应更新)
  • 带有更新 3 的 Visual Studio 2015


  • 如果这是不可能的,您将需要手动执行向导自动执行的操作。

    关于mfc - 我在 VS-2019 中缺少添加新项目 Add "MFC Class From Typelib",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56836205/

    相关文章:

    c# - .NET(或 MFC)的高速绘图控件?

    html - 在 Visual Studio 2019 中使用的 Razor View 未更新

    visual-studio - VSIX 安装失败

    com - 如何在 Windows Server 2008 上使用 32 位 COM 对象(适用于 2008 R2 但不适用于 2008)

    windows - 如何抽取 COM 消息?

    debugging - 我们可以从visual studio2019调试vb6中存在的代码吗

    c++ - 如何在 MFC 中使用 WriteConsoleInput()?

    visual-c++ - 如何检测CListCtrl选择更改?

    c++ - 在客户端 exe 运行时重新编译 MFC DLL

    c# - 如何正确释放Outlook对象?