Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CCmdTarget::FromIDispatch 

Call this function to map an IDispatch pointer, received from automation member functions of a class, into the CCmdTarget object that implements the interfaces of the IDispatch object.


static CCmdTarget* PASCAL FromIDispatch(
   LPDISPATCH lpDispatch 
);

Parameters

lpDispatch

A pointer to an IDispatch object.

A pointer to the CCmdTarget object associated with lpDispatch. This function returns NULL if the IDispatch object is not recognized as a Microsoft Foundation Class IDispatch object.

The result of this function is the inverse of a call to the member function GetIDispatch.

Community Additions

ADD
Show:
© 2015 Microsoft