🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2491

Re: Registry odd problem

#2491
From: Maynard Philbrook
Date: Sat, 31 May 2003 03:51
28 lines
1784 bytes
one of 2 possible problems.
 first you may not need the "\\" at the start of the save key name. because it

maybe trying to work before the root that you have already set.
for exampl
 "Software\\TheKey"
ect.
 the second possible problem is security issues.


"Roger I. O'Horan" wrote:

> Why won't this code work?
>
>  TRegistry *r;
>  r = new TRegistry();
>  r->RootKey = HKEY_CURRENT_USER;
>  r->SaveKey("\\Software\\TheKey","file.reg");
>  delete r;
>
> I have tried all sorts of possible combinations to make it write into file
> "file.reg" the contents of the registry.
>
> All it does is create an empty "file.reg" file.
>
> Your help will be greatly appreciated.
>
> R I O
Technical Details
Message-ID: <3ED826D9.32FCE04D@mindspring.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail
References: <3ed7b67c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,522d0647bce70775
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-05-30 20:54:28 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail
From: Maynard Philbrook <UseThis.jamie12@mindspring.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Registry odd problem
Date: Fri, 30 May 2003 23:51:53 -0400
Organization: MindSpring Enterprises
Lines: 29
Message-ID: <3ED826D9.32FCE04D@mindspring.com>
References: <3ed7b67c$1@newsgroups.borland.com>
Reply-To: UseThis.jamie12@mindspring.com
NNTP-Posting-Host: 42.a8.28.eb
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Server-Date: 31 May 2003 03:54:05 GMT
X-Mailer: Mozilla 4.5 [en]C-CCK-MCD {TLC;RETAIL}  (Win98; U)
X-Accept-Language: en