Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
506 views
in Technique[技术] by (71.8m points)

com - 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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...