Article View: borland.public.cppbuilder.nativeapi
Article #6542Re: Changing Password
From: Hans Galema
Date: Fri, 29 Apr 2005 14:59
Date: Fri, 29 Apr 2005 14:59
24 lines
1805 bytes
1805 bytes
Robert H cave wrote:
> AnsiString PassWord = "SCORPIO";
>
> TRegistry *Reg2 = new TRegistry;
> Reg2->RootKey=HKEY_CURRENT_USER;
> Reg2->OpenKey("\\Software\\MyPasswords",true);
> Reg2->WriteString(PassWord,"SCORPIO");
> Reg2->CloseKey();
delete Reg2;
For me it is strange that you give the key
with the name SCORPIO the value SCORPIO. But that is
up to you. The code works.
Now I do not understand your problem. You can just use
this code to change the password.
Keep every thing the same except for:
Reg2->WriteString(PassWord,"Robert");
Hans.
Technical Details
Message-ID:
<42724c58$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4270eca2@newsgroups.borland.com> <4270efb0@newsgroups.borland.com> <42710b54@newsgroups.borland.com> <4271fc05$1@newsgroups.borland.com> <427239b9@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8cad184d3c3187d X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 29 Apr 2005 16:59:01 +0200 From: Hans Galema <notused@notused.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: Changing Password References: <4270eca2@newsgroups.borland.com> <4270efb0@newsgroups.borland.com> <42710b54@newsgroups.borland.com> <4271fc05$1@newsgroups.borland.com> <427239b9@newsgroups.borland.com> In-Reply-To: <427239b9@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <42724c58$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1114786904 129.125.201.248 (29 Apr 2005 08:01:44 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail