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