You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update for VS2022
* Update after review
* Update after review
* Update after review
* Update for VS 2022
* Update for Visual studio 2022
* Update after review
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.
13
50
14
51
::: moniker-end
15
52
@@ -23,43 +60,43 @@ Use this wizard to add an MFC class from an available type library. The wizard c
23
60
24
61
|Option|Description|
25
62
|------------|-----------------|
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.|
28
65
29
66
-**Available type libraries**
30
67
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.
32
69
33
70
-**Location**
34
71
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.
36
73
37
74
-**Interfaces**
38
75
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.
40
77
41
78
|Transfer button|Description|
42
79
|---------------------|-----------------|
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.|
47
84
48
85
-**Generated classes**
49
86
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.
51
88
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.
53
90
54
91
-**Class**
55
92
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.
57
94
58
95
-**File**
59
96
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.
61
98
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.
0 commit comments