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. C / C++ / MFC
  4. Addin issue: OnConnection is not getting called

Addin issue: OnConnection is not getting called

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++com
3 Posts 2 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.
  • V Offline
    V Offline
    VC_RYK
    wrote on last edited by
    #1

    Hi, We have written a ATL COM addin for MS word. We have found that events are called for 1st instance of word document. When we open another document then no event is called. If we close all word docs and open a new word document again, event is generated. We futher digging we found that,for first instance OnConnection() is called, for 2nd , 3rd instance it is not called. Please help me out. regards RYK

    L 1 Reply Last reply
    0
    • V VC_RYK

      Hi, We have written a ATL COM addin for MS word. We have found that events are called for 1st instance of word document. When we open another document then no event is called. If we close all word docs and open a new word document again, event is generated. We futher digging we found that,for first instance OnConnection() is called, for 2nd , 3rd instance it is not called. Please help me out. regards RYK

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      VC_RYK wrote:

      Please help me out.

      With what? You think we can make word fire the events when documents are opened? This is Code Project not the Magic Shop.

      led mike

      V 1 Reply Last reply
      0
      • L led mike

        VC_RYK wrote:

        Please help me out.

        With what? You think we can make word fire the events when documents are opened? This is Code Project not the Magic Shop.

        led mike

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

        Hi From This link u can get the code http://support.microsoft.com/kb/230689 and this works only for a single document which open first but i want to work for every document. With regards RYK

        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