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
Copy file name to clipboardExpand all lines: docs/ide/add-interface-definition-library-method-wizard.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,11 @@ ms.custom: devdivchpfy22
9
9
10
10
# Add an IDL method
11
11
12
-
The **Add IDL Method** wizard adds a method to an Interface Definition Library (IDL) interface, such as in an ATL project that contains an IDL file. The **Add IDL Method** wizard isn't available in projects that support MFC.
12
+
The **Add IDL Method** wizard adds a method to an Interface Definition Library (IDL) interface, such as in an ATL project that contains an IDL file. This wizard isn't available in projects that support MFC.
13
13
14
-
This wizard differs from the [**Add Method**](adding-a-method-visual-cpp.md) wizard and **ADD IDL MFC Method** wizard. The **Add Method** wizard adds a default method to your project. The **Add IDL MFC Method** wizard is specific to MFC, ActiveX, or ATL projects that support MFC.
14
+
This wizard differs from the [**Add method**](adding-a-method-visual-cpp.md) wizard and the **Add IDL MFC method** wizard:
15
+
- The **Add method** wizard adds a method to your project.
16
+
- The **Add IDL MFC method** wizard is specific to MFC, ActiveX, or ATL projects that support MFC.
15
17
16
18
## Add a method to your interface
17
19
@@ -23,15 +25,15 @@ This wizard differs from the [**Add Method**](adding-a-method-visual-cpp.md) wiz
23
25
24
26
1. On the shortcut menu, select **Add** > **Add Method**.
25
27
26
-
1. In the **Add IDL Method** wizard, provide the following information to create the method.
28
+
1. In the **Add IDL Method** wizard, provide the information to create the method.
27
29
28
30
1. Select **OK** to add the method.
29
31
30
32
### User Interface element list
31
33
32
-
The following section describes the user interface that you'll use to add a method:
34
+
The following section describes the wizard interface that you'll use to add a method:
33
35
34
-
:::image type="content" source= "media/add-interface-definition-library-method-wizard.png" alt-text="Screenshot of adding a method using the Add IDL MFC method wizard. Shows two parameters: [ in ] int i and [ in ] float f. Return type is H RESULT.":::
36
+
:::image type="content" source= "media/add-interface-definition-library-method-wizard.png" alt-text="Screenshot of adding a method using the wizard. Shows 2 parameters: [ in ] int i and [ in ] float f. Return type is H RESULT. Infer in out parameter values from type is selected.":::
35
37
36
38
-**Method name**
37
39
@@ -40,14 +42,15 @@ The following section describes the user interface that you'll use to add a meth
40
42
-**Return type**
41
43
42
44
The data type returned by the method. The standard way to return error codes from methods defined in an interface is with a `HRESULT`.
45
+
43
46
The following table describes the different kinds of interfaces that you can add method to, and the allowable return types for methods defined on those interfaces. For dual and custom interfaces, the return type must be `HRESULT`. The UI won't allow you to change this return type.
0 commit comments