|
-
June 26th, 2005, 11:30 AM
#5
Re: IWebBrowser2 Problem in Win32!
There is no such thing called GetUnknown that I am aware of.
 Originally Posted by qexing
//******Always Error Here******//
AtlAdvise(ppw, GetUnknown(), DIID_DWebBrowserEvents2, &m_dwCookie);
-----------------------------------------
It always returns an "GetUnknown--Undeclared identifier" error, and I don't know which is the base .h file.
The second parameter of AtlAdvise is IUnknown* of the client: which in this case is your application, I hope.
So, if you are calling this from a COM class, pass (IUnknown*)this, or IUnknown* of the class that implements the client, something like this -
Code:
AtlAdvise(ppw, (IUnknown*)(this), DIID_DWebBrowserEvents2, &m_dwCookie);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|