You may want to save yourself from reinventing the wheel by using the SvCom
package which provides support for NT Services including DCOM servers.  It
will handle all of the registry stuff for you, and the best thing is that it
allows you to debug a service application just like a normal executable!!!

Check out:

http://www.chat.ru/~aldyn/svcom_frame.html 

SvCom has saved me a lot of time and only costs $39 to register.

==================================================================

Tom Munro Glass

+----------------------------------------------------------------+
| E-mail:                                                        |
|     Internet:           [EMAIL PROTECTED]                         |
| Web sites:                                                     |
|     TMG CONSULTANCY:    http://www.tmgcon.com                  |
|     Tewkesbury Web:     http://www.tmgcon.com/tewksweb         |
+----------------------------------------------------------------+



> -----Original Message-----
> From: Jeremy Coulter [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 11, 1999 11:57 AM
> To:   Multiple recipients of list delphi
> Subject:      [DUG]:  NT Services and Registry
> 
> HI all.
> 
> well over the weekend I found a great little bit of code that 
> allows you to create NT Services.
> Basically it involves creating a new application, and 
> replacing the default form an unit with the ones that comes 
> with this code I found, and telling the project options to 
> generate a console app.
> REALLY simple.
> 
> I was happy, and it works really well.....form what I can 
> see.....BUT I have a whole lot of setting stored int he registry.
> I have/am porting a normal application over to an NT Service 
> (now I have code that works) and it relies on settings in the 
> registry.
> But it SEEMS as if the NT Service I have created is NOT 
> READING THE REGISTRY !!
> Now it must be something I am doing, like looking at the 
> Current User section of the registry, and not another part or 
> something like that.........can anyone shed some light on this ??
> 
> Thansk, Jeremy Coulter
> P.s. If you want the code that makes the NT Serve, let me 
> know, and I will email to you.
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to