|
|
От: | sidaesc | |
| Дата: | 02.05.06 08:21 | ||
| Оценка: | |||
IWebBrowser2* webBrowser2;
...
if ( !webBrowser2->QueryInterface( IID_IConnectionPointContainer, (LPVOID*)&pCPC ) )
{
if ( !pCPC->FindConnectionPoint( DIID_DWebBrowserEvents2, &pCP ) )
{
HRESULT res = pCP->Advise( (IUnknown *)&WebBrowserEvent, &dwCookie );
pCP->Release();
}
pCPC->Release();
}