请高手帮助我这个import dll 的用法 新评论 hongguang yin 2008.02.06 10:22 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 I need help with import dll 100% CPU USAGE ?! MT4 Files Functions Replacement. 新评论 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录
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