Yes Tony, that was the problem. Ifound this after someone else made the same
suggestion.
Cheers,
Jeremy Coulter
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Tony Sinclair
> Sent: Monday, July 12, 1999 7:26 AM
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: NT Services and Registry
>
>
> Jeremy Coulter wrote:
>
> > 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.
> >
>
> Hi Jeremy,
>
> I have written a couple service apps in VB (sorry for swearing)
> and services
> can't see HKEY_CURRENT_USER. Store all your settings in
> HKEY_LOCAL_MACHINE. I
> just create a new key under the software key eg
>
> HKEY_LOCAL_MACHINE\Software\My Software\Stuff
>
>
> Hope this helps
>
> Tony
> --
>
>
> Tony Sinclair
> Christchurch
> New Zealand
>
> "I like deadlines. I especially like the
> sound they make as they go wizzing by."
>
>
> ------------------------------------------------------------------
> ---------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz