Hi, What I am trying to do is place my own button on the explorer tool bar and have it navigate the browser to my web site. I have created a COM Object using ATL. This object implements IObjectWithSite. The problem I am having is that when the button is pressed it calls:
This is what it is supposed to do but, the problem is the when I try to set my smart pointer:
CComQIPtr<IWebBrowser2, &IID_IWebBrowser2> m_spWebBrowser2;
equal to pUnkSite:
m_spWebBrowser2 = pUnkSite;
it doesn't seem to do anything. m_spWebBrowser2 remains NULL? Anyone have any idea what I am doing wrong? Anything would help at this point.