Click here to Skip to main content
15,922,145 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: resume download Pin
AlexO7-Feb-03 3:05
AlexO7-Feb-03 3:05 
GeneralRe: resume download Pin
Todd Smith19-Feb-03 9:29
Todd Smith19-Feb-03 9:29 
Generaloutlook express configuration Pin
naradaji6-Feb-03 5:25
naradaji6-Feb-03 5:25 
GeneralRe: outlook express configuration Pin
Michael Dunn6-Feb-03 9:43
sitebuilderMichael Dunn6-Feb-03 9:43 
GeneralRe: outlook express configuration Pin
naradaji6-Feb-03 21:13
naradaji6-Feb-03 21:13 
GeneralRe: outlook express configuration Pin
Michael Dunn8-Feb-03 19:09
sitebuilderMichael Dunn8-Feb-03 19:09 
GeneralRe: outlook express configuration Pin
naradaji9-Feb-03 21:22
naradaji9-Feb-03 21:22 
GeneralProblems connecting DWebBrowserEvents2 Pin
Xavyer5-Feb-03 22:43
Xavyer5-Feb-03 22:43 
I try to catch events like this

class ATL_NO_VTABLE CTBar : <br />
    public CComObjectRootEx<CComSingleThreadModel>,<br />
    public CComCoClass<CTBar, &CLSID_TBar>,<br />
    public IDispatchImpl<ITBar, &IID_ITBar, &LIBID_ATLToolBarLib, /*wMajor =*/ 1, /*wMinor =*/ 0>,<br />
    public IDispEventImpl<1,CTBar,&__uuidof(DWebBrowserEvents2),&LIBID_SHDocVw>,<br />
    public IObjectWithSiteImpl<CTBar><br />
    public ......<br />
{<br />
<br />
BEGIN_SINK_MAP(CTBar)<br />
    SINK_ENTRY_EX(1,__uuidof(DWebBrowserEvents2),DISPID_NEWWINDOW2,OnNewWindow)<br />
END_SINK_MAP()<br />
.....<br />
<br />
IUnknown* m_pSinkUnk;<br />
IWebBrowser2* m_pWebBrowser2;<br />
LPDWORD cookie;<br />
STDMETHOD (SetSite) (IUnknown*);<br />
STDMETHOD (OnNewWindow) (IDispatch** &ppDisp,VARIANT_BOOL* &Cancel);<br />
.....<br />
};<br />
<br />
<br />
STDMETHODIMP CTBar::SetSite(IUnknown* punkSite)<br />
{<br />
   .....<br />
   IServiceProviderPtr pServProv(punkSite);<br />
   pServProv->QueryService(SID_SWebBrowserApp, IID_IWebBrowser2,(void**)&m_pWebBrowser2);<br />
   this->QueryInterface (IID_IUnknown, (LPVOID*)&m_pSinkUnk);<br />
   AtlAdvise(m_pWebBrowser2,m_pSinkUnk,__uuidof(DWebBrowserEvents2),cookie);<br />
   .....<br />
}


but i can't. Where's the problem in this code?
GeneralQuestion about input iterator. Pin
George25-Feb-03 21:34
George25-Feb-03 21:34 
GeneralRe: Question about input iterator. Pin
Joaquín M López Muñoz5-Feb-03 22:38
Joaquín M López Muñoz5-Feb-03 22:38 
GeneralRe: Question about input iterator. Pin
George26-Feb-03 0:03
George26-Feb-03 0:03 
GeneralRe: Question about input iterator. Pin
Joaquín M López Muñoz6-Feb-03 7:01
Joaquín M López Muñoz6-Feb-03 7:01 
GeneralRe: Question about input iterator. Pin
George26-Feb-03 15:22
George26-Feb-03 15:22 
GeneralRe: Question about input iterator. Pin
Joaquín M López Muñoz6-Feb-03 19:48
Joaquín M López Muñoz6-Feb-03 19:48 
GeneralRe: Question about input iterator. Pin
George27-Feb-03 2:52
George27-Feb-03 2:52 
GeneralTab Control quick hiding Pin
Leo Smith5-Feb-03 11:59
Leo Smith5-Feb-03 11:59 
GeneralRe: Tab Control quick hiding Pin
Ben Burnett7-Feb-03 13:37
Ben Burnett7-Feb-03 13:37 
GeneralQuestion about output iterator. Pin
George25-Feb-03 3:16
George25-Feb-03 3:16 
GeneralRe: Question about output iterator. Pin
Joaquín M López Muñoz5-Feb-03 8:01
Joaquín M López Muñoz5-Feb-03 8:01 
GeneralRe: Question about output iterator. Pin
George25-Feb-03 19:58
George25-Feb-03 19:58 
GeneralRe: Question about output iterator. Pin
Joaquín M López Muñoz5-Feb-03 22:40
Joaquín M López Muñoz5-Feb-03 22:40 
GeneralRe: Question about output iterator. Pin
George25-Feb-03 23:53
George25-Feb-03 23:53 
GeneralRe: Question about output iterator. Pin
George27-Feb-03 4:54
George27-Feb-03 4:54 
GeneralQuestion about input iterator on the same input stream. Pin
George24-Feb-03 19:26
George24-Feb-03 19:26 
GeneralRe: Question about input iterator on the same input stream. Pin
Joaquín M López Muñoz4-Feb-03 20:14
Joaquín M López Muñoz4-Feb-03 20:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.