Share via


Calling a Method With No Arguments

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The simplest use of IDispatch::Invoke is to call a method that does not have parameters. You only need to pass the DISPID of the method, a LCID, the DISPATCH_METHOD flag, and an empty DISPPARAMS structure.

Most methods 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

Reference

CoCreateInstance
DISPPARAMS
IDispatch::GetIDsOfNames
IDispatch::Invoke
IUnknown
IUnknown::QueryInterface

Concepts

Automation