COleDispatchDriver::operator LPDISPATCH
액세스 하는 기본 IDispatch 의 포인터는 COleDispatchDriver 개체입니다.
operator LPDISPATCH( );
예제
COleDispatchDriver disp;
if (disp.CreateDispatch(_T("WMPlayer.OCX")))
{
IDispatch* pDispatch = disp; //COleDispatchDriver::operator
//LPDISPATCH is called here
IUnknown* pUnkn = NULL;
HRESULT hr = pDispatch->QueryInterface(IID_IUnknown ,(void**)&pUnkn);
if (SUCCEEDED(hr))
{
//Do something...
pUnkn->Release();
}
}
요구 사항
헤더: afxdisp.h