🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8914

Re: Using TRegIniFile to read REG_DWORD type

#8914
From: Remy Lebeau (TeamB)
Date: Thu, 02 Sep 2004 19:44
18 lines
1398 bytes
"Jermey" <jasonssxxx@hotmail.com> wrote in message
news:41376ce0$1@newsgroups.borland.com...

>    I am having a problem to read REG_DWORD type
> from the registry with TRegIniFile.

Please provide more details.

> I have tried to use ReadInteger and ReadString. The
> system always gave me an exception saying wrong data type.

ReadInteger() is the correct way to read REG_DWORD values.  The only way
ReadInteger() could produce such as error is if the Registry value is not a
REG_DWORD to begin with.


Gambit
Technical Details
Message-ID: <413777c5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41376ce0$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,29fe9a1bf7a007b8
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41376ce0$1@newsgroups.borland.com>
Subject: Re: Using TRegIniFile to read REG_DWORD type
Date: Thu, 2 Sep 2004 12:44:24 -0700
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <413777c5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1094154181 68.69.17.41 (2 Sep 2004 12:43:01 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail