Re: REG_BINARY
- From: Ryan Styles <Ryan@xxxxxxxxxx>
- Date: Tue, 04 Oct 2005 08:47:16 -0400
On Tue, 04 Oct 2005 13:27:01 +1300, Nicholas Sherlock
<n_sherlock@xxxxxxxxxxx> wrote:
00 00 00 00 80 e0 e1 20
That is what the registry entry looks like.
Every time I have tried to read this (using ReadBinaryData), I get
zero as a result, which was why I posted my message last night. Sorry
I failed to mention it, it slipped my mind.
Thanks for the help though, Nicholas. But I think it's something more.
Basically, the value that is being stored is the number of times you
have won the game (it's a little math game he made for his kids) and
how many times you've lost. So, I want to just be able to read that
and come up with an average.
Thanks again!
Ryan
>Ryan Styles wrote:
>> An application a friend of mine made a while back stores some numbers
>> in the registry using the REG_BINARY format (I have no idea why he did
>> this) and I want to be able to READ those numbers and translate them
>> into something readable by a normal human being on a label. So, I
>> guess my question would be: How do you do this?
>
>It depends what format the number actually is in the registry. Is it an
>integer? Floating point? How many bytes is it? If you know the type, you
>can just do (Eg. 4 byte integer. Assuming that you know how to use
>TRegistry):
>
>var i:integer;
>
>reg.ReadBinaryData('MyValue',i,sizeof(i));
>
>Cheers,
>Nicholas Sherlock
.
- Follow-Ups:
- Re: REG_BINARY
- From: alanglloyd@xxxxxxx
- Re: REG_BINARY
- References:
- REG_BINARY
- From: Ryan Styles
- Re: REG_BINARY
- From: Nicholas Sherlock
- REG_BINARY
- Prev by Date: Problem with OnCalcFields() Event.
- Next by Date: type compatibility / string operations (newbie)
- Previous by thread: Re: REG_BINARY
- Next by thread: Re: REG_BINARY
- Index(es):
Relevant Pages
|