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. Events

Events

Scheduled Pinned Locked Moved COM
questiontutorial
3 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.
  • _ Offline
    _ Offline
    _8086
    wrote on last edited by
    #1

    I have a dll that implements connection points. Now I have a client that uses the dll using CreateInstance(..)& queryinterface. Now how do I receive events from the DLL. I guess it should be like registering a callback function for the events inside the dll? Dont know.. how to go?

    ---------------------------- 286? WOWW!:-O

    L L 2 Replies Last reply
    0
    • _ _8086

      I have a dll that implements connection points. Now I have a client that uses the dll using CreateInstance(..)& queryinterface. Now how do I receive events from the DLL. I guess it should be like registering a callback function for the events inside the dll? Dont know.. how to go?

      ---------------------------- 286? WOWW!:-O

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      - If you are not using MFC, Check IConnectionPointContainer and IConnectionPoint interfaces - MFC has functions -> AfxConnectionAdvise and AfxConnectionUnadvise

      S o h a i l K a d i w a l a
      To Err Is Human; to Debug, Divine

      1 Reply Last reply
      0
      • _ _8086

        I have a dll that implements connection points. Now I have a client that uses the dll using CreateInstance(..)& queryinterface. Now how do I receive events from the DLL. I guess it should be like registering a callback function for the events inside the dll? Dont know.. how to go?

        ---------------------------- 286? WOWW!:-O

        L Offline
        L Offline
        lafleon
        wrote on last edited by
        #3

        Hello Just read this article: COM Connection Points By Alex C. Punnen. http://www.codeproject.com/com/connectionpoint.asp Regards,

        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