COleDispatchDriver::CreateDispatch

Call this member function to create an IDispatch interface object and attach it to the COleDispatchDriver object.

Syntax

BOOL CreateDispatch( REFCLSID clsid, COleException* pError = NULL );

BOOL CreateDispatch( LPCTSTR lpszProgID, COleException* pError = NULL );

At a Glance

Header file: Afxdisp.h
Platforms:
Versions: 2.0 and later
Complete documentation Visual C++ documentation

See Also

COleDispatchDriver Overview, COleDispatchDriver Member Functions, Support Classes, COleDispatchDriver::AttachDispatch, COleDispatchDriver::DetachDispatch, COleDispatchDriver::ReleaseDispatch, COleException, COleDispatchDriver::m_lpDispatch, IDispatch