VB6 Bitwise And w/ 8-Byte Data Type -
i'm running problem vb6 gives me overflow. i'm using bitwise operations find state of individual bit, statement in particular final line of:
dim double dim b double dim c double = 2 ^ 31 b = 0 c = b , a
and error occurs on last line, overflow. i'm under impression , operator limited 4 bytes (long in vb6) , therefore overflows with
a = 2 ^ 31
which greater upper limit of long. can confirm/clarify/solve problem? again, need find state of individual bit. (this occurs if make a, b, , c currency, 8 bytes stored integer types. need 44 bits, defaulted 8-byte data types)
(i'm new bit manipulation , vb in general, , stackoverflow forgive mistakes may have made)
Comments
Post a Comment