Article View: borland.public.cppbuilder.nativeapi
Article #7634Re: Registry in WinXP
From: Eelke
Date: Tue, 18 Jan 2005 09:53
Date: Tue, 18 Jan 2005 09:53
17 lines
1523 bytes
1523 bytes
> //Not Tested
> #include "registry.hpp"
> TRigistry *MyReg=new TRegistry();
> MyReg->RootKey=HKey_Local_Machine;
> MyReg->OpenKey("Software\\TheKey");
> MyReg->WriteString("MyStr",true);
> MyReg->CloseKey();
> delete MyReg;
>
> The Codes are working in Win98 but its not responding / functioning in Win98
> or NT systems
> there is a .default :-\
> please guide me thx
Not all users have write permission on HKEY_LOCAL_MACHINE on the newer
windows versions.
Eelke
Technical Details
Message-ID:
<41ecdcb3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41ecdb87@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,26d4cbfcdfdcb29b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 18 Jan 2005 10:53:04 +0100 From: Eelke <e.klein@mplussoftware.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Registry in WinXP References: <41ecdb87@newsgroups.borland.com> In-Reply-To: <41ecdb87@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.58.1.162 Message-ID: <41ecdcb3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1106042035 81.58.1.162 (18 Jan 2005 01:53:55 -0800) Lines: 17 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail