you can use the new instruction only to allocate object of a class type,
you defined byte as a unsigned char, this is a primitive type, it's not a class so it doesn't work.
you may use the C calloc(...) function but it's not very simple at first sight
I think you may start with studying the malloc(), realloc(), calloc(), free() functions of the C language on this site.
You can find these functions in: Reference->C Library->cstdlib
in the paragraph "Dynamic memory management"
I just give you a simple example here:
1 2 3 4 5 6
void main() {
byte * str;
str = (byte *) calloc(100, sizeof(byte)); // this is specific for arrays
// or: str = (byte *) malloc(100); // this is only for byte arrays
free(str);
}
Exactly, that's the proper way.
And remember, that you can't just delete[] a multidimensional array - you need to delete it row by row, just as you create it.
Have fun.
M