Hi Stephen,
VB supports the standard bitwise operations Or, And, Not and XOr as well as
bit shifting >for right shift, and << for left shift.
One thing to be aware of, there is no type character for byte, so for
constants you have to write CByte(&HFF) or similar.
You can get the string into an array of bytes like so:
Dim b(0 To 7) As Byte
For i As Int32 = 0 To 7
b(i) = CByte(Asc(keyString(i)) And &H80)
Next
"s gall" <s@none.co.nzwrote in message
news:2E**********************************@microsof t.com...
Hi all
I have a task to test a checksum algrorithum. This requires changing a
string of 12 chr's to a stream of 96 bits and then manipulating these.
Currently I work in vb (vb2008). Would it be better for me to use another
language (say vc++) and build a DLL to do the bit manipulating or does
vb.net have some way of working with bits.
Stephen