I would like to do the following:
Create three dimesinal array in c# code like this:
var myArray = new short[x,y,z]; UnanagedFunction(myArray);
Pass it to unmanaged code (c++) like this:
void UnmanagedFunction(short*** myArray) { short first = myArray[0][0][0]; }
UPDATED When I try the following code I have runtime error:
Attempted to read or write to protected memory.
Thank you!!!
See Question&Answers more detail:os