Click to See Complete Forum and Search --> : Array Params in C DLL


Jim Coleman
February 24th, 2000, 11:40 PM
Hi,

I am trying to call a C/C++ function contained in a DLL. Most of the required C parameters are vectors and matrices. I have tried many alternatives, but when I debug the DLL the VB arrays are not getting passed through to C.

This is not an issue (as far as I know) of decorated names or mangling, the DLL and its exported function is located OK.

I have defined the VB side as " ... ByRef myArray() as double", and the C side as "double *myArray".

If anyone knows how to overcome this it would be much appreciated.

Thanks.