>From your description, the serial engine must run as Service - required to
be active when user not logged on.
So your problem boils down to one of how to talk to a service (without using
COM??)
a. TCP/IP
b. Memory mapped files.
c. Windows Messages (not certain this will actually work).
d. Using the "LocalService" registry key - it's an article on MSDN which I
think is exactly what you are looking for - ie to access a COM component
from both a service and a application.
Myles.
-----Original Message-----
From: David Smith [mailto:[EMAIL PROTECTED]]
Sent: Monday, 16 July 2001 6:19 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: What's the best approach?
Hi All,
I have a scenario that I would like some ideas on. ie best approach from
your experience.
I have a out of process (exe) serial communications engine with a COM
interface that the main application talks to.
The serial communications engine automatically generates it's own commands
every 30 or so minutes using a timer and also accepts commands from the main
application via the COM interface. This application is only designed for
the W2K OS.
I have created a service which automatically launches the serial
communications engine via the COM interface however it has to run in an
interactive process or else the main application creates it own instance of
the COM server. This is fine except then the service can't launch the COM
server unless a user is logged in. I am trying to avoid having to have a
user logged in to activate allow the serial communications engine to
automatically poll some devices.
Does anyone have any ideas on another approach I could try?
Best Regards,
David Smith,
Product Architect
Fingerprint Corporation
t +61 7 3376 6688
f +61 7 3376 6702
m +61 410 46 36 46 36
e [EMAIL PROTECTED]
w www.gpsonline.com.au/fingerprint
This e-mail with its attachments is confidential and may be subject to legal
privilege. If it is not intended for you please reply immediately, destroy
it and do not copy, disclose or use it in any way.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/