This member function retrieves the IDispatch pointer from an automation method that either returns an IDispatch pointer or takes an IDispatch pointer by reference.
LPDISPATCH GetIDispatch( BOOL bAddRef );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CCmdTarget Overview, CCmdTarget Member Functions, Application Architecture Classes, CCmdTarget::EnableAutomation, COleDispatchDriver, IUnknown::Release