Skip to content

Commit f241b30

Browse files
committed
Updating the steps for VS2022
1 parent b73d6c6 commit f241b30

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎docs/mfc/reference/adding-an-mfc-class-from-a-type-library.md‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
description: "Learn more about: Adding an MFC Class from a Type Library"
33
title: "Adding an MFC Class from a Type Library"
4-
ms.date: "11/04/2016"
4+
ms.date: "03/21/2022"
55
helpviewer_keywords: ["classes [MFC], adding MFC", "MFC, adding classes from type libraries", "type libraries, adding MFC classes from"]
66
ms.assetid: aba40476-3cfb-47af-990e-ae2e9e0d79cf
7+
ms.custom: devdivchpfy22
78
---
89
# Adding an MFC Class from a Type Library
910

@@ -18,9 +19,11 @@ A type library contains a binary description of the interfaces exposed by a comp
1819

1920
1. In either **Solution Explorer** or [Class View](/visualstudio/ide/viewing-the-structure-of-code), right-click the name of the project to which you want to add the class.
2021

21-
1. From the shortcut menu, click **Add**, and then click **Add Class**.
22+
1. From the shortcut menu, select **Add**, and then select **New Item**.
2223

23-
1. In the [Add Class](../../ide/adding-a-class-visual-cpp.md#add-class-dialog-box) dialog box, in the Templates pane, click **MFC Class from Typelib**, and then click **Open** to display the [Add Class from Typelib Wizard](../../mfc/reference/add-class-from-typelib-wizard.md).
24+
1. In the **Add New Item** dialog box, select **Installed** packages and then select **Visual C++**.
25+
26+
1. In the Templates pane, select **MFC Class from Typelib**, and then select **Add** to display the [Add Class from Typelib Wizard](../../mfc/reference/add-class-from-typelib-wizard.md).
2427

2528
In the wizard, you can add more than one class in a type library. Likewise, you can add classes from more than one type library in a single wizard session.
2629

0 commit comments

Comments
 (0)