doesn't get DWebBrowserEvents2 events
i have a COM object. in it i start a new thread and in that thread i create an internet explorer window. when i try to nevigate to an URL i don't catch the DWebBrowserEvents2 nevigate complete event.
if i'm doing it in the main thread it work fine.
someone know the what's the problem?
Re: doesn't get DWebBrowserEvents2 events
Well, what is the reason to create a window in a secondary thread?
Re: doesn't get DWebBrowserEvents2 events
The problem is your code. :) You have to show your code where you create your web browser control and connect to the event source.
As well, any thread COM classes operate in must perform CoInitialize/OleInitialize.