How can I export a function which returns a matrix, from C to VB.
In C, the prototype of the function is

int **ProductMatrix(int **m1 ,int **m2,int r1,int c1,int c2)

while calling it in C, I am using

p = ProductMatrix(matrix1,matrix2,row1,col1,col2);
obviously here matrix1 actually refers to 0,0 element of the matrix1.

where p is defined as int **p

But how do I call it in VB?