Re: NT service and connection points
And what is the problem with using events to your GUI
application? You may want to structure it using a callback
interface instead of using connection points though, since
the latter may not have the correct semantics for you.
My point is, always have the application connect to your
service. Don't try to create objects in your application
from within your service. Your GUI application must
always be in control, not your service.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"MON205" <MON205@discussions.microsoft.com> wrote in message
news:9DC51BFD-F6B0-480F-92AC-DED45C4C58B9@microsoft.com...
Thanks for reply.
I meant that I want the service send commands to the GUI.
.....
"Alexander Nickolov" wrote:
The correct group is:
microsoft.public.vc.atl
I set the followup to go to that group, so check for replies there.
How do you "reverse the behavior"? Why do you need to do that?
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"MON205" <MON205@discussions.microsoft.com> wrote in message
news:46F32526-6B5B-4670-B9EA-254EDC1C585F@microsoft.com...
Hello all,
I have an NT Service which should communicate with a desktop MFC
application. To do this communication, I used an ATL/COM server (EXE)
with
a
simple ATL object that has an interface with connection points.
When the desktop application implements the IDispatch interface to
listen
to connection point calls, and the NT service calls the application via
connection points; the communication run successfully. But when I
reverse
the
behavior and let the service implements the IDispatch interface and let
the
desktop application call the service; the connection hangs in the
Fire_XXX
event.
May be this is not the suitable forum for ATL issues, but I didn't find
a
suitable one.
can any one help please.