Imported DLL method, why this syntax error?

 

Hi all, 

 DLL function ...

_DLLAPI double TestArrayFn(double *arr) {

   return 0;


MQL5 ...

#import "TestDLL.dll"

double  TestArrayFn(double &arr[]);

#import

 

And using imported method... 

  double arr[];

  double result =  TestArrayFn(arr);

Im getting a "syntax error" when compiling , hmm  cant figure out what's wrong. 

 

What the syntax error do You get?

I did get no error when comiled your code

 

Good, i retested and runs smoothly. I dont understand because I received this error.

Anyway thanks for support. 

Reason: