COleDispatchDriver::AttachDispatch

void AttachDispatch( LPDISPATCH lpDispatch, BOOL bAutoRelease = TRUE );

Parameters

lpDispatch

Pointer to an OLE IDispatch object to be attached to the COleDispatchDriver object.

bAutoRelease

Specifies whether the dispatch is to be released when this object goes out of scope.

Remarks

Call the AttachDispatch member function to attach an IDispatch pointer to the COleDispatchDriver object. This function releases any IDispatch pointer that is already attached to the COleDispatchDriver object.

COleDispatchDriver OverviewClass MembersHierarchy Chart

See Also   COleDispatchDriver::DetachDispatch, COleDispatchDriver::ReleaseDispatch, COleDispatchDriver::CreateDispatch, COleDispatchDriver::m_lpDispatch, COleDispatchDriver::m_bAutoRelease