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
CDispParams Constructs a CDispParams object.
Constructs a CDispParams object.
Syntax
CDispParams(
UINT nArgs,
VARIANT *pArgs
);
Parameters
- nArgs
- Number of arguments passed to the method or property.
- pArgs
- Pointer to the list of arguments. In the list, each argument is stored with its variant type.
Return Value
No return value.
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.