Return to the Classes View tab of the Workspace Window.
Expand the tree view.
For the BankSoft example, you expand
COM_VC_BankSoft
.
Right-click the newly-added class.
In the BankSoft example, you right-click the
IBSoftFin
tree item.
Click the Add Method menu item and enter the name of the method.
In the BankSoft example, you enter
FV
.
In the Parameters field, enter the signature of the method.
For FV, enter the following:
[in] double Rate,
[in] long nPeriods,
[in] double Payment,
[in] double PresentValue,
[in] long PaymentType,
[out, retval] double* FV
This signature is expressed in terms of the Microsoft Interface Description Language (MIDL). For a complete description of MIDL, see the MIDL language reference. Note that:
[in]
indicates that the parameter is an input parameter.
[out]
indicates that the parameter is an output parameter.
[out, retval]
indicates that the parameter is the return value of the method.
Also, all [out] parameters are passed by reference. In the BankSoft example, the parameter FV is a double.
Click OK.
The Developer Studio adds to the project a stub for the method you added.