how to pass an array as parameter to C function ??
Posted on 2003-11-03
I have a DLL in C code (win32 DLL)
I want to use it in my C#.
the prototype of my C function : int** allocation(int** r, int m, int n)
in my C#, i have made a DLLImport.
The return "work". In an usafe part i create an int**, ...
But i don't know how to create an int** and affect it in order to pass it in param
tutu = allocation(toto, 2, 2); // toto is not assigned
I can access to "tutu" after ... but assign "toto" ????
Is it the right way ? How create the array ?