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. Notify connected COM clients

Notify connected COM clients

Scheduled Pinned Locked Moved ATL / WTL / STL
questionc++comsysadmin
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.
  • G Offline
    G Offline
    gethomast
    wrote on last edited by
    #1

    Hi, I have a simple ATL server project created with VS2008 (e.g. IDummy) with an connection point event (e.g. Fire_test) and a stand-alone thread. My thread should notify all connected clients with the specified event. How can I accomplish this? Maybe using EnumConnectionPoints, but how? Any examlples? Thx in advance :-D

    S 1 Reply Last reply
    0
    • G gethomast

      Hi, I have a simple ATL server project created with VS2008 (e.g. IDummy) with an connection point event (e.g. Fire_test) and a stand-alone thread. My thread should notify all connected clients with the specified event. How can I accomplish this? Maybe using EnumConnectionPoints, but how? Any examlples? Thx in advance :-D

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

      a) make sure the ATL server uses an appropriate threading model (e.g. free threading) b) Make sure the thread has a pointer to the C++ class instance underlying your COM object. c) call the COM object's Fire_test method. The important thing is to make sure teh thread has visibility of the C++ object instance, not just the COM interface pointers - otherwise, it won't see the Fire_test method.

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      G 1 Reply Last reply
      0
      • S Stuart Dootson

        a) make sure the ATL server uses an appropriate threading model (e.g. free threading) b) Make sure the thread has a pointer to the C++ class instance underlying your COM object. c) call the COM object's Fire_test method. The important thing is to make sure teh thread has visibility of the C++ object instance, not just the COM interface pointers - otherwise, it won't see the Fire_test method.

        Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

        G Offline
        G Offline
        gethomast
        wrote on last edited by
        #3

        Thank you.

        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