Article View: borland.public.cppbuilder.nativeapi
Article #17647Re: .NET and RegistryPermission
From: bcbuser
Date: Fri, 07 Mar 2003 23:09
Date: Fri, 07 Mar 2003 23:09
32 lines
1988 bytes
1988 bytes
If your just looking to use the registry for simple reading and writing (ie.
Read and Write keys) you can use the TRegistry class.
TRegistry *Reg = new TRegistry;
if(Reg->OpenKey("MyKey", false))
{
AnsiString MyData = Reg->ReadString("SomeData");
Reg->CloseKey();
}
delete Reg;
"Alvise Valsecchi" <alvise@hochfeiler.it> wrote in message
news:3E684D05.5F902AEB@hochfeiler.it...
> Hi. The .NET Framework class library from Microsoft desribes a
> RegistyPermission class, and provides a C++ example to make readable a
> registry key.
>
>
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html
/frlrfsystemsecuritypermissionsregistrypermissionclasstopic.asp)
>
> I admit my ignorance: I don't know what does .NET mean and how to use
> it. May I use the RegistryPermission class from within my old dear C++
> Builder 3 Pro ???? And how ?
>
> Thanks from Alvise.
>
>
> ==========================================
> visit my web pages for the programmer at:
>
> http://www.hochfeiler.it/alvise
Technical Details
Message-ID:
<3e69267c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3E684D05.5F902AEB@hochfeiler.it>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7b83e73c658a4b47 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-07 15:27:42 PST Reply-To: "bcbuser" <nobody@hotmail.com> From: "bcbuser" <nobody@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3E684D05.5F902AEB@hochfeiler.it> Subject: Re: .NET and RegistryPermission Date: Fri, 7 Mar 2003 17:09:46 -0600 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 65.30.144.251 Message-ID: <3e69267c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1047078524 65.30.144.251 (7 Mar 2003 15:08:44 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail