Re: COM CAtlServiceModuleT Question
You need to register your objects with your module class
when they are created, and unregister them when they are
destroyed (no AddRef-ing - weak references). Then your
module class can iterate its registration container and raise
the events through a public, but non-COM method of your
implementation class.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"EdisonCPP" <EdisonCPP@discussions.microsoft.com> wrote in message
news:C0D5494B-FB5C-4A8C-963B-6167364CAD63@microsoft.com...
Oops... hosing = housing
"EdisonCPP" wrote:
I want to broadcast an event from my CAtlServiceModuleT class that is
hosing
my out-of-proc interfaces. I've created a method in my event container
interface that will do this. How can I get it from my instance of
CAtlServiceModuleT. The idea is, the service will be running, and send
results to those listening for the events. I've done a nasty little hack
where I store a global pointer in my container class' Advise() to iteself
if
it is the first Advise(). Then I grab that from my CAtlServiceModuleT
class.
Since it's an out-of-proc server, the CoCreateInstance just hangs if I
try
to create an instance that way.
Is there a way to get the active insterfaces from the CAtlServiceModuleT
class?