Skip to content

Commit 04f6ae9

Browse files
Update for VS2022 (MicrosoftDocs#4162)
* Update for VS2022 * Update after review * Update after review * Update after review * Update for VS 2022 * Update for Visual studio 2022 * Update after review
1 parent e519602 commit 04f6ae9

File tree

2 files changed

+53
-16
lines changed

2 files changed

+53
-16
lines changed

docs/mfc/reference/add-class-from-typelib-wizard.md

Lines changed: 53 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,52 @@
11
---
22
description: "Learn more about: Add Class from Typelib Wizard"
33
title: "Add Class from Typelib Wizard"
4-
ms.date: "05/09/2019"
4+
ms.date: "03/10/2022"
55
helpviewer_keywords: ["COM interfaces, adding classes"]
66
ms.assetid: 96152afd-9374-4649-a6ab-b0fa2a5592a3
7+
ms.custom: devdivchpfy22
78
---
89
# Add Class from Typelib Wizard
910

1011
::: moniker range=">=msvc-160"
1112

12-
This wizard is not available in Visual Studio 2019 and later.
13+
The wizard creates a class for each interface you add from the selected type library.
14+
15+
:::image type="content" source="../reference/media/add-class-from-typelib-wizard.png" alt-text="Screenshot of Add Class From Typelib Wizard.":::
16+
17+
- **Implement interface from**
18+
19+
Specifies the location of the type library.
20+
21+
|Option|Description|
22+
|------------|-----------------|
23+
|**Registry**|Registered type libraries are listed in **Available type libraries**.|
24+
|**File**|Provide the file location in **Location** for type libraries that aren't registered with the system.|
25+
26+
- **Available type libraries**
27+
28+
Lists the type libraries registered in the system. Select a type library from this list to display its interfaces in the **Interfaces** list.
29+
30+
- **Location**
31+
32+
Specifies the location of the type library. Under **Implement interface from**, select **File** to provide the type library file location. To browse to the location of the file, select the ellipsis button.
33+
34+
- **Available Interfaces**
35+
36+
Lists the interfaces in the type library selected in the **Available type libraries** list.
37+
38+
|Transfer button|Description|
39+
|---------------------|-----------------|
40+
|**>**|Adds the selected interface in the **Interfaces** list. Unavailable if no interface is selected.|
41+
|**>>**|Adds all the interfaces for the type library selected in the **Available type libraries** list.|
42+
|**\<**|Removes the selected class in the **Implement interfaces** list. Unavailable if no class is selected.|
43+
|**\<\<**|Removes all the classes in the **Implement interfaces** list. Unavailable if the **Implement interfaces** list is empty.|
44+
45+
- **Implement interfaces**
46+
47+
Specifies the class names to be generated from the interfaces added using the **>** or **>>** button. Click the box to select a class, and then use the up or down keys to scroll through the list. The wizard generates classes when you select **OK**. You can select only one class at a time in this box.
48+
49+
To remove a class, select it in this list and then select **<**. Select **<<** to remove all classes in the **Implement interfaces** box.
1350

1451
::: moniker-end
1552

@@ -23,43 +60,43 @@ Use this wizard to add an MFC class from an available type library. The wizard c
2360

2461
|Option|Description|
2562
|------------|-----------------|
26-
|**Registry**|The type library is registered in the system. Registered type libraries are listed in **Available type libraries**.|
27-
|**File**|The type library is not necessarily registered in the system but is contained in a file. You must provide the file location in **Location**.|
63+
|**Registry**|Registered type libraries are listed in **Available type libraries**.|
64+
|**File**|Provide the file location in **Location** for type libraries that aren't registered with the system.|
2865

2966
- **Available type libraries**
3067

31-
Lists the type libraries currently registered in the system. Select a type library from this list to display its interfaces in the **Interfaces** list.
68+
Lists the type libraries registered in the system. Select a type library from this list to display its interfaces in the **Interfaces** list.
3269

3370
- **Location**
3471

35-
Specifies the location of the type library. If you click **File** under **Add Class From**, you can provide the location of the file containing the type library. To browse to the location of the file, click the ellipsis button.
72+
Specifies the location of the type library. If you select **File** under **Add Class From**, you can provide the location of the file containing the type library. To browse to the location of the file, select the ellipsis button.
3673

3774
- **Interfaces**
3875

39-
Lists the interfaces in the type library currently selected in the **Available type libraries** list.
76+
Lists the interfaces in the type library selected in the **Available type libraries** list.
4077

4178
|Transfer button|Description|
4279
|---------------------|-----------------|
43-
|**>**|Adds the interface currently selected in the **Interfaces** list. Dimmed if no interface is selected.|
44-
|**>>**|Adds all the interfaces in the type library currently selected in the **Available type libraries** list.|
45-
|**\<**|Removes the class currently selected in the **Generated classes** list. Dimmed if no class is currently selected in the **Generated classes** list.|
46-
|**\<\<**|Removes all the classes in the **Generated classes** list. Dimmed if the **Generated classes** list is empty.|
80+
|**>**|Adds the interface selected in the **Interfaces** list. Unavailable if no interface is selected.|
81+
|**>>**|Adds all the interfaces in the type library selected in the **Available type libraries** list.|
82+
|**\<**|Removes the class selected in the **Generated classes** list. Unavailable if no class is selected in the **Generated classes** list.|
83+
|**\<\<**|Removes all the classes in the **Generated classes** list. Unavailable if the **Generated classes** list is empty.|
4784

4885
- **Generated classes**
4986

50-
Specifies the class names to be generated from the interfaces added using the **>** or **>>** button. You can click this box to select a class, and then use the up or down keys to scroll through the list, viewing each class name in the **Class** box and file name in the **File** box that the wizard generates when you click **Finish**. You can select only one class at a time in this box.
87+
Specifies the class names to be generated from the interfaces added using the **>** or **>>** button. Click the box to select a class, and then use the up or down keys to scroll through the list, viewing each class name in the **Class** box and file name in the **File** box that the wizard generates when you select **Finish**. You can select only one class at a time in this box.
5188

52-
You can remove a class by selecting it in this list and clicking **<**. You do not need to select a class in the Generated classes box to remove all classes; by clicking **<<**, you remove all classes in the **Generated classes** box.
89+
To remove a class, select it in this list and then select **<**. Select **<<** to remove all classes in the **Generated classes** box.
5390

5491
- **Class**
5592

56-
Specifies the name of the class selected in the **Generated classes** box that the wizard adds when you click **Finish**. You can edit the name in the **Class** box.
93+
Specifies the name of the class selected in the **Generated classes** box that the wizard adds when you select **Finish**. You can edit the name in the **Class** box.
5794

5895
- **File**
5996

60-
Sets the name of the header file for the new class. By default, this name is based on the name you provide in **Generated classes**. Click the ellipsis button to save the file name to the location of your choice, or to append the class declaration to an existing file. If you choose an existing file, the wizard will not save it to the selected location until you click **Finish** in the wizard.
97+
Sets the name of the header file for the new class. By default, this name is based on the name you provide in **Generated classes**. Select the ellipsis button to save the file name to the location of your choice, or to append the class declaration to an existing file. If you choose an existing file, the wizard won't save it to the selected location until you select **Finish** in the wizard.
6198

62-
The wizard does not overwrite a file. If you select the name of an existing file, when you click **Finish**, the wizard prompts you to indicate whether the class declaration should be appended to the contents of the file. Click **Yes** to append the file; click **No** to return to the wizard and specify another file name.
99+
The wizard doesn't overwrite a file. If you select the name of an existing file, when you select **Finish**, the wizard prompts you to indicate whether the class declaration should be appended to the contents of the file. Select **Yes** to append the file; select **No** to return to the wizard and specify another file name.
63100

64101
::: moniker-end
65102

Loading

0 commit comments

Comments
 (0)