Article View: borland.public.cppbuilder.database.ado
Article #2490Registry odd problem
From: Roger I. O'Horan
Date: Fri, 30 May 2003 19:54
Date: Fri, 30 May 2003 19:54
16 lines
1251 bytes
1251 bytes
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:
<3ed7b67c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,522d0647bce70775,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-05-30 13:02:31 PST From: "Roger I. O'Horan" <rightohornospam@nospamyahoo.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: Registry odd problem Date: Fri, 30 May 2003 14:54:19 -0500 Lines: 18 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: 200.67.184.126 Message-ID: <3ed7b67c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054324348 200.67.184.126 (30 May 2003 12:52:28 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail