次の方法で共有


Calling a Method With No Arguments (Windows Embedded CE 6.0)

1/6/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