Article View: borland.public.cppbuilder.nativeapi
Article #10375Re: Custom Shutdown
From: Malcolm Smith
Date: Wed, 21 Apr 2004 09:19
Date: Wed, 21 Apr 2004 09:19
46 lines
2838 bytes
2838 bytes
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:
<40863c65$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news-in.ntli.net!news2.euro.net!newshub3.home.nl!home.nl!news.cambrium.nl!news.cambrium.nl!amsnews01.chello.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,362cd189c238eed0 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-04-21 02:35:49 PST Reply-To: "Malcolm Smith" <mjfreelancing@optusnet.com.au> From: "Malcolm Smith" <mjfreelancing@optusnet.com.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> Subject: Re: Custom Shutdown Date: Wed, 21 Apr 2004 19:19:05 +1000 Lines: 48 Organization: MJ Freelancing 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: 211.30.147.112 Message-ID: <40863c65$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1082539109 211.30.147.112 (21 Apr 2004 02:18:29 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news-in.ntli.net!news2.euro.net!newshub3.home.nl!home.nl!news.cambrium.nl!news.cambrium.nl!amsnews01.chello.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail