"I am trying to return a safe array from a CVI Dll to visual basic. I can successfully call CVI functions from VB and return simple types like int , double etc but when I try to return a Safe Array then the "generate visual basic module" gives me error.
The line that give error in the header file to generate the visual basic module is
LPSAFEARRAY* getAmplitudes() ;
and the function where i generate the safe array is
Amplitudes, iterations, safeArray are global variables
LPSAFEARRAY* getAmplitudes()
{
CA_Array1DToSafeArray (Amplitudes, CAVT_DOUBLE, iterations, safeArray);
return safeArray;
}"