The CDispParams class implements the DISPPARAMS structure used in Automation as a C++ base class. The IDispatch::Invoke method uses the OLE DISPPARAMS structure to contain the arguments passed to any method or property.
The DISPPARAMS structure is defined as follows:
typedef struct FARSTRUCT tagDISPPARAMS{ VARIANTARG FAR* rgvarg; // Array of arguments DISPID FAR* rgdispidNamedArgs; // Dispatch IDs of named arguments unsigned int cArgs; // Number of arguments unsigned int cNamedArgs; // Number of named arguments } DISPPARAMS;
Member Functions
Name | Description |
CDispParams | Constructs a CDispParams object. |
Constructs a CDispParams object.
CDispParams(
UINT nArgs,
VARIANT* pArgs
);
No return value.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.