realbasic-nug
[Top] [All Lists]

32-bit unsigned quantity

To: realbasic-nug at lists dot realsoftware dot com
Subject: 32-bit unsigned quantity
From: Ken Fleisher <PT_Ken at netbox dot com>
Date: Thu, 30 Dec 2004 20:10:27 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20041230235329 dot 3D33C62972C at lists dot realsoftware dot com>
Hi again. Sorry for all of the questions that may seem simple to you (I've been away from programming for a while and just can't seem to get over these stumbling blocks...)

I am reading in data (from a memoryblock) that is 4-bytes long and it is supposed to represent an unsigned, 32-bit quantity. I am reading the bytes as:

memoryblock.Long( offset )

but whether I put it into an integer, single, or double, I don't get the right value. (I'm expecting a value of 50, but I am getting something in the 700,000's. I'm not sure how to go about interpreting this quantity and all attempts at bitwise stuff have failed (my inexperience, no doubt!).

Any advice will be appreciated!

Thanks again.

Ken Fleisher

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>