my dll is not under ........\expert\libraries\ folder, may i import it like this #import "E:\dlls\hhhh.dll"
if can do this maner,will the ea run slowly,or not accurate ?
thanks
Not sure, haven't seen anyone doing like that. By default it looks in include folder only... But why dont keep it simple.??
my dll is not under ........\expert\libraries\ folder, may i import it like this #import "E:\dlls\hhhh.dll"
if can do this maner,will the ea run slowly,or not accurate ?
thanks
Hi YALEWANG,
No, we can not. Please read this https://docs.mql4.com/runtime/imports.
However, we may call another dll located anywhere from dll located in experts/libraries. Go Google or MSDN to learn about it msdn.microsoft.com/library/default.aspx
Google something like http://www.google.com/search?q=how to call dll from another dll
Hi YALEWANG,
No, we can not. Please read this https://docs.mql4.com/runtime/imports
However, we may call another dll located anywhere from dll located in experts/libraries. Go Google or MSDN to learn about it msdn.microsoft.com/library/default.aspx
Google something like https://www.mql5.com/go?link=http://www.google.com/search?q=how to call dll from another dll
thank you, onewithzachy
i have viewed the two links for a week, and follw the instruction to write my dll, but not succesed .
my project is,
there are three DLLs,DLL1 under C:\DLL1 directory,DLL2 and DLL3 is in MT4 terminal and used by ea,
both DLL2 and DLL3 call DLL1 .
DLL1 exports functions int in1(int x) and int out1(int x),
DLL2 exports functions int in2(int x) and int out2(int x), and import in1() out1() from DLL1
DLL3 exports functions int in3(int x) and int out3(int x), and import in1() out1() from DLL1
all DLL use win32 console
Hi YALEWANG,
This article is not dll and it's for MQL5, but may interest you though https://www.mql5.com/en/articles/115
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
my dll is not under ........\expert\libraries\ folder, may i import it like this #import "E:\dlls\hhhh.dll"
if can do this maner,will the ea run slowly,or not accurate ?
thanks