COleDispatchDriver::DetachDispatch
Detaches the current IDispatch connection from this object.
LPDISPATCH DetachDispatch( );
Возвращаемое значение
A pointer to the previously attached OLE IDispatch object.
Заметки
The IDispatch is not released.
For more information about the LPDISPATCH type, see Implementing the IDispatch Interface in the Windows SDK.
Пример
LPDISPATCH CreateLPDispatch(LPCTSTR lpszProgId)
{
COleDispatchDriver disp;
disp.CreateDispatch(lpszProgId);
return disp.DetachDispatch();
}
Требования
Header: afxdisp.h
См. также
Основные понятия
COleDispatchDriver::ReleaseDispatch
COleDispatchDriver::CreateDispatch