Article View: borland.public.cppbuilder.nativeapi
Article #13859Re: what's wrong with this code?
From: FrankW
Date: Sun, 14 Sep 2003 03:31
Date: Sun, 14 Sep 2003 03:31
41 lines
2197 bytes
2197 bytes
Hi Remy,
yes, the key exists, in fact I use RegEdit's Copy Key Name option to copy it
to the code, it really confuses me. here is another code that can be tested
in any computer with IE installed:
LONG lResult;
HKEY hKeyResult = 0;
lResult = RegOpenKeyEx( HKEY_CURRENT_USER,
"\\Software\\Microsoft\\Internet Explorer", 0, KEY_READ, &hKeyResult);
Frank
"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3f63df78$1@newsgroups.borland.com...
>
> "FrankW" <nospam@nospam.com> wrote in message
> news:3f63ddac@newsgroups.borland.com...
>
> > Thanks for the reply and sorry for the wrong news group I
> > posted the question, I tried the KEY_READ right, i still get
> > the same error 161
>
> Did you verify with the Registry Editor that the key actually exists?
There
> is nothing wrong with the code you have shown, so if it says the key was
not
> actually found, I have to believe that you are requesting a key that
really
> does not exist. Double-check your key name.
>
>
> Gambit
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/03
>
>
Technical Details
Message-ID:
<3f63e14b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f63ddac@newsgroups.borland.com> <3f63df78$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,636b723329c7c5e8 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-13 20:36:11 PST Reply-To: "FrankW" <nospam@nospam.com> From: "FrankW" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f63ddac@newsgroups.borland.com> <3f63df78$1@newsgroups.borland.com> Subject: Re: what's wrong with this code? Date: Sun, 14 Sep 2003 11:31:15 +0800 Lines: 43 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: 203.131.162.116 Message-ID: <3f63e14b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1063510347 203.131.162.116 (13 Sep 2003 20:32:27 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail