CCmdTarget::GetIDispatch

This member function retrieves the IDispatch pointer from an automation method that either returns an IDispatch pointer or takes an IDispatch pointer by reference.

Syntax

LPDISPATCH GetIDispatch( BOOL bAddRef );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CCmdTarget Overview, CCmdTarget Member Functions, Application Architecture Classes, CCmdTarget::EnableAutomation, COleDispatchDriver, IUnknown::Release