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. Preventing Broadcasting from a Singleton Com Server EXE

Preventing Broadcasting from a Singleton Com Server EXE

Scheduled Pinned Locked Moved COM
comsysadmin
1 Posts 1 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
    georgekjolly
    wrote on last edited by
    #1

    Hai all, -> I have a "COM Server Exe" , with connection point. ->And I made my COM Object class Singleton by using Macro "DECLARE_CLASSFACTORY_SINGLETON" -> My Com Cleint is a Dialog Based Programme .I started 5 clients by clicking on same exe. -> Whenever the client starts , It will set up all the connection points -> I am able to call a COM Method( for eg: my_ComFun() ) by clicking a button on my dialog box -> From inside my_ComFun() I am firing an event to my client . implementation of my_ComFun() /**************************************************************/ STDMETHODIMP CMyServer::my_ComFun(int i) { Fire_MyEvent(i); return S_OK; } /**************************************************************/ ->Whenever I am Firing events from my COM Server(Using function Fire_MyEvent() ) , All my clients are getting function calls , since my COM Server is a Singleton class. * My Requirement is to prevent this broadcasting and direct the function calls from COM to that specific client which calls the Servers my_ComFun(), by keeping the COM Server Singleton. Thanks in Advance. George

    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