Can someone tell me how to get the below code working please.
System::Byte * enced = new byte[Data->Length];
///.. copy data in to array. (omitted)...
//Now pass to memory stream constructor
MemoryStream * ms = new MemoryStream(enced );
I get an error
cannot convert parameter 1 from 'unsigned char __gc *' to 'int'
This - System::Byte * enced = ...
declares a pointer to a Byte, this is not what you want,
Here is how to declare arrays
System::Byte enced[] =
// or explicitely qualify the array as managed
System::Byte enced __gc[] =
Willy.
> Can someone tell me how to get the below code working please.
>
[quoted text clipped - 5 lines]
> I get an error
> cannot convert parameter 1 from 'unsigned char __gc *' to 'int'