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
  1. Home
  2. General Programming
  3. COM
  4. Using existing running programs instead of creating new ones

Using existing running programs instead of creating new ones

Scheduled Pinned Locked Moved COM
comquestion
5 Posts 3 Posters 0 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.
  • J Offline
    J Offline
    jparsons
    wrote on last edited by
    #1

    When I click on a link in outlook it will do one of two things 1) If Internet Explorer is already open it will have the current open browser open the link 2) If Internet explorer is not open it will open a new one and have it open the link I'm sure that #1 is done by some COM trick but I can't figure out how. Can anybody give me some insight into how this is done? Jared jparsons@jparsons.org www.prism.gatech.edu/~gte477n

    V V 2 Replies Last reply
    0
    • J jparsons

      When I click on a link in outlook it will do one of two things 1) If Internet Explorer is already open it will have the current open browser open the link 2) If Internet explorer is not open it will open a new one and have it open the link I'm sure that #1 is done by some COM trick but I can't figure out how. Can anybody give me some insight into how this is done? Jared jparsons@jparsons.org www.prism.gatech.edu/~gte477n

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      One possible solution is FindWindow(). Kuphryn

      1 Reply Last reply
      0
      • J jparsons

        When I click on a link in outlook it will do one of two things 1) If Internet Explorer is already open it will have the current open browser open the link 2) If Internet explorer is not open it will open a new one and have it open the link I'm sure that #1 is done by some COM trick but I can't figure out how. Can anybody give me some insight into how this is done? Jared jparsons@jparsons.org www.prism.gatech.edu/~gte477n

        V Offline
        V Offline
        Vi2
        wrote on last edited by
        #3

        It can be either a result of GetActiveObject|CoCreateInstance combination (or equivalents of VB's GetObject|CreateObject combination) or the binding of some moniker. With best wishes, Vita

        J 1 Reply Last reply
        0
        • V Vi2

          It can be either a result of GetActiveObject|CoCreateInstance combination (or equivalents of VB's GetObject|CreateObject combination) or the binding of some moniker. With best wishes, Vita

          J Offline
          J Offline
          jparsons
          wrote on last edited by
          #4

          I'm having trouble locating the API for GetActiveObject() Can you point me to a link somewhere? Thanks Jared jparsons@jparsons.org www.prism.gatech.edu/~gte477n

          V 1 Reply Last reply
          0
          • J jparsons

            I'm having trouble locating the API for GetActiveObject() Can you point me to a link somewhere? Thanks Jared jparsons@jparsons.org www.prism.gatech.edu/~gte477n

            V Offline
            V Offline
            Vi2
            wrote on last edited by
            #5

            Platform SDK: Automation: GetActiveObject[^] _com_ptr_t::GetActiveObject[^] With best wishes, Vita

            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