Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The simplest use of IDispatch::Invokeis 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 DISPPARAMSstructure.

Most methods take one or more parameters. To invoke these methods, the DISPPARAMSstructure should be filled in, as described in Passing Parameters.

Automation defines special DISPIDs for invoking an object's Valueproperty (the default), and the members _ NewEnum, and Evaluate.

See Also