VB6 arrays are different from
C/C++ arrays:
- in VB an array of
Double
is treated as an object, they knows their size, and they are bounds checked
- in C/C++ an array of
double
is just a memory area with the right size required to store as many numbers as declared, and accessed by pointer. The runtime does not keep trace of the array size, and it's responsibility of the programmer to avoid buffer overruns
When you use a
VB6 dll from
VC,
Visual Studio will create a
wrapper for that dll, but in your case it give you an error message because it is not able to create a
C/C++ function equivalent to the
VB6 one.