Calling a Method With No Arguments
The simplest use of IDispatch::Invoke is to call a method that does not have any parameters. You only need to pass the DISPID of the method, a LCID, the DISPATCH_METHOD flag, and an empty DISPPARAMS structure.
Most methods, however, take one or more parameters. To invoke these methods, the DISPPARAMS structure should be filled in, as described in Passing Parameters.
Automation defines special DISPIDs for invoking an object's Value property (the default), and the members _NewEnum, and Evaluate.
See Also
Automation | CoCreateInstance | DISPPARAMS | IDispatch::GetIDsOfNames | IDispatch::Invoke | IUnknown | IUnknown::QueryInterface
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.