newbie question,
how do i create a char array in vb.net. i'm translating the following code to vb and am able to create an unsigned int array in vb, but not a char array with hex bytes as shown in the last line of the following example.
// c code
unsigned int ar0[11] = {5, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4}
unsigned char ar1[16] = {0x33,0x73,0x3b,0x26,0x63,
0x23,0x6b,
0x76,0x3e,
0x7e,0x36,
0x2b,0x6e,
0x2e,0x66,
0x7b}
'vb code
Dim ar0 As UInt16() = {5, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4} // works
Dim ar1 As Char() = {0x33, 0x73, 0x3b, 0x26, 0x63, 0x23, 0x6b, 0x76, 0x3e, 0x7e, 0x36, 0x2b, 0x6e, 0x2e, 0x66, 0x7b} // no work
Start Free Trial