Search code examples
mfccomvisual-studio-2019

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?


Solution

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