Article View: borland.public.cppbuilder.nativeapi
Article #4859Re: Registry Subkeys
From: Gert Kok
Date: Sat, 19 Nov 2005 16:23
Date: Sat, 19 Nov 2005 16:23
24 lines
1476 bytes
1476 bytes
That part is simpler than I thought.
When there are more entries within \Product\, has each one to be opened
individually?
Richard Bradbrook wrote:
> Can't you use TRegistry?
>
> basic example:
>
> TRegistry *Registry;
> AnsiString somestring;
>
> Registry = new TRegistry;
> Registry->RootKey = HKEY_CURRENT_USER;
> if(Registry->OpenKey("Software\Company\Product\Key1", false))
> {
> somestring = Registry->ReadString("somevalue");
> Registry->WriteString("somevalue", somestring);
> Registry->CloseKey();
> }
> delete Registry;
>
>
Technical Details
Message-ID:
<437f5145$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<437f284c$1@newsgroups.borland.com> <437f42a4@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e0d6234a30d9c63 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 19 Nov 2005 17:23:17 +0100 From: Gert Kok <gertkok@keraweb.nl> User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Registry Subkeys References: <437f284c$1@newsgroups.borland.com> <437f42a4@newsgroups.borland.com> In-Reply-To: <437f42a4@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 82.161.166.216 Message-ID: <437f5145$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1132417349 82.161.166.216 (19 Nov 2005 08:22:29 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail