doesn't get DWebBrowserEvents2 events
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: doesn't get DWebBrowserEvents2 events

  1. #1
    Join Date
    Apr 2013
    Posts
    17

    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?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,466

    Re: doesn't get DWebBrowserEvents2 events

    Well, what is the reason to create a window in a secondary thread?
    Victor Nijegorodov

  3. #3
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,022

    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.
    Best regards,
    Igor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center