🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Registry Subkeys

#4857
From: Richard Bradbrook
Date: Sat, 19 Nov 2005 15:21
16 lines
1381 bytes
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: <437f42a4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <437f284c$1@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
From: "Richard Bradbrook" <dont@spamme.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <437f284c$1@newsgroups.borland.com>
Subject: Re: Registry Subkeys
Date: Sat, 19 Nov 2005 15:21:07 -0000
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
NNTP-Posting-Host: 86.136.60.229
Message-ID: <437f42a4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1132413604 86.136.60.229 (19 Nov 2005 07:20:04 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail