我缺少添加新项从"Typelib添加MFC类"的操作.在VS-2019中 [英] I am missing the Add new item Add "MFC Class From Typelib" in VS-2019

查看:1995
本文介绍了我缺少添加新项从"Typelib添加MFC类"的操作.在VS-2019中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS-2019 Porfessional中安装了所有MFC东西.

I have all MFC stuff installed foe my VS-2019 Porfessional.

我想念以前版本中使用的添加新项来自Tyspelib的MFC类"来创建简单的IDispatch包装器.

I miss the Add New Item "MFC Class From Tyspelib" used in former version to create a simple IDispatch wrapper.

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

I checked everything and I installed the same stuff like in VS-2017. I see this in my VS-2017 version.

我想念什么?

推荐答案

许多向导(包括该向导)已从VS2019中删除.
发行说明说:

Many Wizards, including that, have been removed from the VS2019.
The release notes say:

不推荐使用-Visual Studio 2019

  • 以下C ++ ATL/MFC向导不再可用:ATL COM + 1.0组件向导,ATL Active Server Pages组件向导,ATL OLE DB提供程序向导,ATL属性页面向导,ATL OLE DB使用者向导,MFC ODBC使用者,MFC ActiveX控件中的类,以及类型库中的 MFC类.这些技术的示例代码存储在 Microsoft Docs
  • 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版本15.3开始.
更改从该版本开始,但是没有完成一致的行为.
在Visual Studio 2017中添加ATL简单对象


These changes start from VS2017 ver 15.3.
The change began with this edition, but no consistent behavior was completed.
Add ATL Simple Object in Visual Studio 2017

如果您可以使用VS2017的最新版本15.9.13做您想做的事情,则应该在那里工作并移植到VS2019.

If you can do what you want with VS2017's latest version 15.9.13, you should work there and port to VS2019.

此外,在15.9.13中无法完成某些工作.在这种情况下,您需要以以下方式使用旧版本,并移植到VS2019

Furthermore, some work is impossible in 15.9.13. In that case, you need to work with older versions in the following way and port to VS2019

  • https://visualstudio.microsoft.com/
  • 上的用户注册
  • 如果您已订阅MSDN,请下载并安装以下产品版本,否则使用社区版本.
    • Visual Studio 2017(版本15.0)(注意:永远不要更新)
    • 带有Update 3的Visual Studio 2015
    • User registration at https://visualstudio.microsoft.com/
    • Download and install the product version below if you have a MSDN subscription, otherwise uses the Community version.
      • Visual Studio 2017 (version 15.0) (Note: This should never be updated)
      • Visual Studio 2015 with Update 3

      如果这不可能,那么您将需要手动执行向导自动完成的操作.

      If this is not possible, you will need to do something manually that Wizard did automatically.

      这篇关于我缺少添加新项从"Typelib添加MFC类"的操作.在VS-2019中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆