我希望做以下事情:
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]; }
已更新 当我尝试运行以下代码时,出现了运行时错误:
尝试读取或写入受保护的内存。
谢谢!!!
void UnmanagedFunction(short myArray[][10][10]
)) - xanatos