🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10188

Re: Custom Shutdown

#10188
From: Malcolm Smith
Date: Sun, 02 May 2004 23:58
64 lines
3023 bytes
Remy,

The solution was to use InitiateSystemShutdownEx.  Everything works as
expected now.

-- 
Malcolm Smith
MJ Freelancing
http://www.mjfreelancing.com



"Malcolm Smith" <mjfreelancing@optusnet.com.au> wrote in message
news:40863c65$1@newsgroups.borland.com...
> Yes, that's what I've already done.  I'm just trying to work out why the
> code is not working as expected.
>
> I'm clutching at straws trying different things.
>
> Now I've run out of them :(
>
> -- 
> ---
> Malcolm Smith
> MJ Freelancing
> http://www.mjfreelancing.com
> Borland Technology Partner
>
>
> "Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in
message
> news:40862453$1@newsgroups.borland.com...
> >
> > "Malcolm Smith" <m.smith@comvision.net.au> wrote in message
> > news:40860b1e$1@newsgroups.borland.com...
> >
> > > I'm not even sure if I have to do this because the RegSetValueEx
> > > takes NULL terminated strings, ending with a double NULL
> > > (from memory).
> >
> > That is easy to work with, though.
> >
> > > The MSDN docs clearly indicate the two strings are joined
> > > using \n\r - this tells me a standard string is all that is required.
> >
> > Then what is the actual problem?  Just format an AnsiString and then
call
> > WriteString():
> >
> >     Reg->WriteString("PCS;64;0", "my title\n\rmy description");
> >
> > Or
> >
> >     AnsiString title = "my title";
> >     AnsiString desc = "my description";
> >     AnsiString value = title + "\n\r" + desc;
> >     Reg->WriteString("PCS;64;0", value);
> >
> >
> > Gambit
> >
> >
>
>
Technical Details
Message-ID: <4095896c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4084732e@newsgroups.borland.com> <4084916b$1@newsgroups.borland.com> <4084b480$2@newsgroups.borland.com> <4084b95d@newsgroups.borland.com> <4084bc41@newsgroups.borland.com> <4084d570$1@newsgroups.borland.com> <4084e3a3$1@newsgroups.borland.com> <8lta80h2sdag0frrsbne47t34nfqiafvmo@4ax.com> <40858781$1@newsgroups.borland.com> <40858c51$1@newsgroups.borland.com> <40859012$1@newsgroups.borland.com> <40860791$1@newsgroups.borland.com> <40860b1e$1@newsgroups.borland.com> <40862453$1@newsgroups.borland.com> <40863c65$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,362cd189c238eed0
X-Google-Attributes: gid10cc67,public
Reply-To: "Malcolm Smith" <m.smith@comvision.net.au>
From: "Malcolm Smith" <m.smith@comvision.net.au>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4084732e@newsgroups.borland.com> <4084916b$1@newsgroups.borland.com> <4084b480$2@newsgroups.borland.com> <4084b95d@newsgroups.borland.com> <4084bc41@newsgroups.borland.com> <4084d570$1@newsgroups.borland.com> <4084e3a3$1@newsgroups.borland.com> <8lta80h2sdag0frrsbne47t34nfqiafvmo@4ax.com> <40858781$1@newsgroups.borland.com> <40858c51$1@newsgroups.borland.com> <40859012$1@newsgroups.borland.com> <40860791$1@newsgroups.borland.com> <40860b1e$1@newsgroups.borland.com> <40862453$1@newsgroups.borland.com> <40863c65$1@newsgroups.borland.com>
Subject: Re: Custom Shutdown
Date: Mon, 3 May 2004 09:58:31 +1000
Lines: 66
Organization: Comvision Pty Ltd
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 144.137.108.100
Message-ID: <4095896c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1083541868 144.137.108.100 (2 May 2004 16:51:08 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail