A question about the use of function in DLL 新评论 Kevin007 2013.08.19 08: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" ? Please fix this indicator or EA about DLL and mt4 mt5 新评论
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.