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. ATL / WTL / STL
  4. How to catch events?

How to catch events?

Scheduled Pinned Locked Moved ATL / WTL / STL
c++tutorialquestion
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.
  • R Offline
    R Offline
    Roozbeh69
    wrote on last edited by
    #1

    Hi everybody, Does anybody know how to catch Microsoft word application events in a non MFC application (specifically WTL application) ? thanks in advance, Roozbeh

    S 1 Reply Last reply
    0
    • R Roozbeh69

      Hi everybody, Does anybody know how to catch Microsoft word application events in a non MFC application (specifically WTL application) ? thanks in advance, Roozbeh

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      There's too much to specify in detail, but here goes... Word events are specified as an interface that you (the client that wants to receive the events) have to implement. You tell Word about the interface implementation using Word's implementation of IConnectionPointContainer and IConnectionPoint, which is made simpler if using ATL through the function AtlAdvise. These two links may help: COM Events Event Handling with ATL Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'

      R 1 Reply Last reply
      0
      • S Stuart Dootson

        There's too much to specify in detail, but here goes... Word events are specified as an interface that you (the client that wants to receive the events) have to implement. You tell Word about the interface implementation using Word's implementation of IConnectionPointContainer and IConnectionPoint, which is made simpler if using ATL through the function AtlAdvise. These two links may help: COM Events Event Handling with ATL Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'

        R Offline
        R Offline
        Roozbeh69
        wrote on last edited by
        #3

        Thank you very much for your help. Regards, Roozbeh

        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