Skip to content

Commit a01c44c

Browse files
TylerMSFTTylerMSFT
authored andcommitted
edit pass
1 parent 6053572 commit a01c44c

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

docs/ide/add-interface-definition-library-method-wizard.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ ms.custom: devdivchpfy22
99

1010
# Add an IDL method
1111

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.
1313

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.
1517

1618
## Add a method to your interface
1719

@@ -23,15 +25,15 @@ This wizard differs from the [**Add Method**](adding-a-method-visual-cpp.md) wiz
2325

2426
1. On the shortcut menu, select **Add** > **Add Method**.
2527

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.
2729

2830
1. Select **OK** to add the method.
2931

3032
### User Interface element list
3133

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:
3335

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.":::
3537

3638
- **Method name**
3739

@@ -40,14 +42,15 @@ The following section describes the user interface that you'll use to add a meth
4042
- **Return type**
4143

4244
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+
4346
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.
4447

45-
|Interface kind|Description|
48+
|Interface kind|Return type|
4649
|--------------------|-----------------|
4750
|[Dual interface](/windows/win32/winauto/dual-interfaces--iaccessible-and-idispatch)|`HRESULT`. Unchangeable.|
4851
|[Custom interface](/windows/win32/winauto/custom-user-interface-elements)|`HRESULT`. Unchangeable.|
49-
|Local custom interface|Provide your own return type or select from the list.|
50-
|[Dispinterface](/windows/win32/midl/dispinterface)|Provide your own return type or select from the list.|
52+
|Local custom interface|Provide your own return type or select it from the drop-down list.|
53+
|[Dispinterface](/windows/win32/midl/dispinterface)|Provide your own return type or select it from the drop-down list.|
5154

5255
- **Parameters**
5356

@@ -58,12 +61,15 @@ The following section describes the user interface that you'll use to add a meth
5861
Add a parameter. In **Parameters**, type the parameter type, name, and any modifiers. For example, `int x`, and choose **OK**.
5962

6063
- **x**
64+
6165
Removes the selected parameter from the **Parameters** list.
6266

6367
- **Infer in/out parameters values from types**
68+
6469
Inserts the `[in]` or `[out]` attribute based on the parameter's type.
6570

6671
- **Set the last parameter as the return value (retval)**
72+
6773
The last parameter will be treated as the method's return value.
6874

6975
- **Attributes**

0 commit comments

Comments
 (0)