How to create an unsigned char in VB.Net

G

Guest

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

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

Morten Wennevik

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;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top