Results 1 to 2 of 2

Thread: exporting matrix from C to VB

  1. #1

    Thread Starter
    Fanatic Member sbasak's Avatar
    Join Date
    Aug 2001
    Location
    Globe Trotter
    Posts
    524

    exporting matrix from C to VB

    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?

  2. #2
    Zaei
    Guest
    "ByRef Matrix1(0, 0)" should do the trick. You may want to change int** to int* if it doesnt work.

    Z.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width