Binary String Data OR Byte() OR BitArray.... to Integer

pgjuun2

New member
Joined
Mar 13, 2005
Messages
1
Programming Experience
10+
In C/C++/Obj-C, changing a binary representation of a number into an int or a double or whatever is a very simple affair (one short line of code). I'm having a heck of a time figuring out how to do the same in VB.NET without writing my own iterative bitshifting function, which I don't want to do.

I have a String with binary data in it. Various pieces of it need to be interpreted as integers, longs, singles, or doubles. I use the Substring() method to get a little 2-byte piece and then..... what? I can use GetBytes() and use that to create a new BitArray, but.... again... I'm stuck there too.

What am I missing here?

I'm sure it's simple. I'm just not seeing it in the documentation.

Please help. Thanks! :)

- Philip
 
Top Bottom