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.
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.
--------------------------------------------------------
Newbie
C/C#/C++
swimming/cycling/running
There is nothing more powerful than an idea.
Except for an idea put into action.
--------------------------------------------------------
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
Last edited by m37h0d; 10-28-2009 at 06:53 AM.