Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. IDispatch Interface for IE

IDispatch Interface for IE

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    balifrank
    wrote on last edited by
    #1

    Hey How can I get a IDispatchpointer to a running instance of an IE? Greetings from Bali Frank

    A 1 Reply Last reply
    0
    • B balifrank

      Hey How can I get a IDispatchpointer to a running instance of an IE? Greetings from Bali Frank

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      You can enumerate shell windows using "ShellWindows" object (clsid is in exdisp.h or comdef.h) Then enumarate shell windows (that includes ie instances as well) using ISehllWindow interface. Query items for IWebBrowser2 interface if it has one, get a window handle (IWebBrowser::get_HWND), then get window class GetClassName and see if it's an IE ("IEFrame"). Edward. m_spSHWinds.CreateInstance(__uuidof(SHDocVw::ShellWindows)); }

      B 1 Reply Last reply
      0
      • A Anonymous

        You can enumerate shell windows using "ShellWindows" object (clsid is in exdisp.h or comdef.h) Then enumarate shell windows (that includes ie instances as well) using ISehllWindow interface. Query items for IWebBrowser2 interface if it has one, get a window handle (IWebBrowser::get_HWND), then get window class GetClassName and see if it's an IE ("IEFrame"). Edward. m_spSHWinds.CreateInstance(__uuidof(SHDocVw::ShellWindows)); }

        B Offline
        B Offline
        balifrank
        wrote on last edited by
        #3

        I have testet this with the result if a call my function to receive the dispatch pointer from a VB Applikation it's work fine. But if I call the dll from an asp site via IIS I get an error class not registered at m_spSHWinds.CreateInstance(__uuidof(SHDocVw::ShellWindows)); Greetings from Bali

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups