> Has anyone used D4 or D3 to create NT Services ?
> I'm going nuts trying to debug and run the sample app from the Delphi IDE.
> I presume I'm supposed to register it somehow (it's a shame Delphi doesn't
> do it automatically) but the documentation doesn't mention anything about
> this
> and I'm a bit lost.  Any help appreciated :-)

This is hardly offtopic... I have written them in D3 (which still use) but I got 
some REALLY good start with a beasty written by Peter Antypas at
[EMAIL PROTECTED] I dont know what its status is now - probably abandoned
but he has let others use it without charge, so worth a try. I have hacked
various bits - message logging to Event logger etc., but overall it has provided
an excellent framework. Services created like this are installed on command
line with  svcname -i . If D4 doesnt do this (strange), then I can let you know
what the API calls to install and remove a service are. I dont know much 
about the D4 wrapper in winsvc.h though, so you will need to work that 
through. 

----------------------------------------------------------
Phil Scadden, Institute of Geological and Nuclear Sciences
PO Box 30368, Lower Hutt, New Zealand
Ph +64 4 5704821, fax +64 4 5704603
---------------------------------------------------------------------------
  New Zealand Delphi Users group - Offtopic List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to