Yawen Chan
10/22/2002 5:49:00 AM
Hi,
In C#, I want to pass a 2-dimensional array (of type int[,]) to a function
in a C DLL but don't know how.
The C function's prototype:
int funcionA(int **temp);
The function's prototype defined in C#:
int functionA(int[,] temp);
When I call the function:
int[,] data = new int[10,10];
int i = functionA(data);
The above codes were compiled but I got a System.NullReferenceException at
run time. What should I do?