请高手帮助我这个import dll 的用法

 

Hi,

I have compiled my matlab function into dll. In the EA, I put in the following code:

#import "MLfun01.dll"

double GetArrayItemValue(double ML_Signal[]);

bool SetArrayItemValue(double& ML_Signal[],int,int,double);
ML_Signal[8] = MLfun01(string CP, string dataCL,double arr[8],string OTM);
#import

the output of the Matlab function is a 1x8 vector, so the output in MT4 from the function should be a 1x8 array. the above code doesn't work. Can anybody tell me what is the correct code of importing the dll for the function?

Thanks

原因: