Click to See Complete Forum and Search --> : Hex Value to unsigned long


Mark
March 11th, 1999, 11:35 PM
Could anyone explain how I can convert an hex value to binary base2 eg.


I need to read 4 bytes Hex and append them to create a 32bit value in Base 2


HEX DECIMAL BINARY(REQUIRED)

43CAFAE0 -> 67202250224 -> 10000111100111010111000001


I have not found any refrence to base in VB and C++ strtoul does not out put

the binary value in base 2


eg strtoul(Value, *endptr, 2) will out put values like 0


any help welcome

Regards Mark

Chris Eastwood
March 12th, 1999, 09:11 AM
Hi


Take a look at :


http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1474


Regards


Chris Eastwood


CodeGuru - the website for developers

http://www.codeguru.com/vb