A question about the use of function in DLL 新评论 Kevin007 2013.08.19 06:20 As you see below,I use this function from DLL : MT4_EXPFUNC int __stdcall test(int a[]) { return a[0]; } and the code in MT4 is : int b[2]; b[0] = 7; b[1] = 8; Print("******:",test(b),",Error:",GetLastError()); so,I was expected the result 7,but actually the result is : 2013.08.19 16:14:48 SockSer USDJPY,H4: ******:-1548528064,Error:0 and sometimes the result maybe: 2013.08.19 15:47:09 SockSer USDCAD,H1: ******:1889394240,Error:0 so this result is not for sure,but what Im sure about is that this is not what I expect,I doubt whether its something wrong between vc++6.0 and MT4. Anyone can help?thx a lot. How check state by MQL code in the window Tools -> Options -> "Ask manual Confirmation" and "Confirm DLL function call" ? Need help with sell orders... Please fix this indicator or EA 新评论 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录
As you see below,I use this function from DLL :
and the code in MT4 is :
so,I was expected the result 7,but actually the result is :
and sometimes the result maybe:
so this result is not for sure,but what Im sure about is that this is not what I expect,I doubt whether its something wrong between vc++6.0 and MT4.
Anyone can help?thx a lot.