Hi All,
Good day.
public:
static array<Byte>^tmpArray = gcnew array<Byte>(10000000);
.......
unsigned char text[] = tmpArray[]; // Compiled error.
How to assign the tmpArray value to text[]
Thanks in advance.
Printable View
Hi All,
Good day.
public:
static array<Byte>^tmpArray = gcnew array<Byte>(10000000);
.......
unsigned char text[] = tmpArray[]; // Compiled error.
How to assign the tmpArray value to text[]
Thanks in advance.
you appear to be using C#, which i am unfamiliar with.
in c++ the syntax is:
Code:unsigned char* text = (unsigned char*)tmpArray;
// text now points to the first byte of tmpArray but does not create a second copy