How to create an unsigned char in VB.Net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have this C++ code:
// Pointer to tranfser buffer
unsigned char* theBuffer = NULL;

In .Net (Visual Basic) how do I do that?
 
Hi M K,

I'm a bit unsure if C++ char is defined as one or two bytes or varies.
If 1 byte, use a byte, if 2 bytes use System.UInt16 or ushort in C#.

ushort[] theBuffer = null;
 
Back
Top