Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am missing the Add new item Add "MFC Class From Typelib" in VS-2019

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

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

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

What did I miss?

like image 317
xMRi Avatar asked Jul 01 '19 13:07

xMRi


People also ask

How do I add a typelib MFC class to a project?

In either Solution Explorer or Class View, right-click the name of the project to which you want to add the class. From the shortcut menu, click Add, and then click Add Class. In the Add Class dialog box, in the Templates pane, click MFC Class from Typelib, and then click Open to display the Add Class from Typelib Wizard.

Is there a wizard to add MFC classes in Visual Studio 2019?

This wizard is not available in Visual Studio 2019 and later. Use this wizard to add an MFC class from an available type library. The wizard creates a class for each interface you add from the selected type library. Specifies the location of the type library, from which the class is created. The type library is registered in the system.

How to add COM class to Visual Studio 2017 project?

Bookmark this question. Show activity on this post. I am working with an old ATL/COM project in Visual Studio 2017. In previous versions of Visual Studio you could select "Add Class" and then select the option "Add simple ATL object" to add a COM class to the project.

How do I add a type library to a project?

Your type library must be registered for it to appear in the Available type libraries list in the Add Class from Typelib Wizard. In either Solution Explorer or Class View, right-click the name of the project to which you want to add the class. From the shortcut menu, click Add, and then click Add Class.


1 Answers

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

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.

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

If you can do what you want with VS2017's latest version 15.9.13, you should work there and port to 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

  • 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.

like image 184
kunif Avatar answered Sep 28 '22 01:09

kunif