🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Custom Shutdown

#10373
From: Remy Lebeau (TeamB)
Date: Wed, 21 Apr 2004 07:28
27 lines
2228 bytes
"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: <40862453$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!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>

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 00:39:40 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
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>
Subject: Re: Custom Shutdown
Date: Wed, 21 Apr 2004 00:28:05 -0700
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <40862453$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1082532947 67.22.138.253 (21 Apr 2004 00:35:47 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail