我在 VS-2019 中缺少添加新项目添加 "MFC Class From Typelib"
I am missing the Add new item Add "MFC Class From Typelib" in VS-2019
我已经为我的 VS-2019 专业版安装了所有 MFC 东西。
我想念旧版本中用于创建简单 IDispatch 包装器的添加新项 "MFC Class From Tyspelib"。
我检查了所有内容并安装了与 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 版本 15.3 开始。
更改从这个版本开始,但没有完成一致的行为。
如果你能用 VS2017 的最新版本 15.9.13 做你想做的,你应该在那里工作并移植到 VS2019。
此外,有些工作在 15.9.13 中是不可能的。在这种情况下,您需要通过以下方式使用旧版本并移植到 VS2019
- 用户注册于https://visualstudio.microsoft.com/
- 如果您订阅了 MSDN,请下载并安装以下产品版本,否则使用社区版本。
- Visual Studio 2017(版本 15.0)(注意:永远不会更新)
- Visual Studio 2015 年更新 3
如果这不可能,您将需要手动执行向导自动执行的操作。
我已经为我的 VS-2019 专业版安装了所有 MFC 东西。
我想念旧版本中用于创建简单 IDispatch 包装器的添加新项 "MFC Class From Tyspelib"。
我检查了所有内容并安装了与 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 版本 15.3 开始。
更改从这个版本开始,但没有完成一致的行为。
如果你能用 VS2017 的最新版本 15.9.13 做你想做的,你应该在那里工作并移植到 VS2019。
此外,有些工作在 15.9.13 中是不可能的。在这种情况下,您需要通过以下方式使用旧版本并移植到 VS2019
- 用户注册于https://visualstudio.microsoft.com/
- 如果您订阅了 MSDN,请下载并安装以下产品版本,否则使用社区版本。
- Visual Studio 2017(版本 15.0)(注意:永远不会更新)
- Visual Studio 2015 年更新 3
如果这不可能,您将需要手动执行向导自动执行的操作。