Article View: borland.public.cppbuilder.nativeapi
Article #8321Win98 and XP Registry Problem
From: Pedram
Date: Wed, 10 Nov 2004 07:05
Date: Wed, 10 Nov 2004 07:05
20 lines
1323 bytes
1323 bytes
Hi , see the code below :
TRegistry *Reg = new TRegistry;
try{
Reg->RootKey = HKEY_CURRENT_USER;
if(Reg->OpenKey("\\Software", true )){
Reg->WriteString("Babak","Pedram");
Reg->CloseKey();
}
}
__finally{
delete Reg;
}
}
This code is not functioning in WinXP :-\
I dont know why its not portable but I guess its because there is a (dot)
.DEFAULT in WinXP Registry system.
Please guide me
thx
Technical Details
Message-ID:
<419473da@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,58f5ac2b1afa125c,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Pedram" <Pedram@Internet.Network> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Win98 and XP Registry Problem Date: Wed, 10 Nov 2004 10:35:36 +0330 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 217.219.97.130 Message-ID: <419473da@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100248026 217.219.97.130 (12 Nov 2004 00:27:06 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail