You cannot pass parameters by reference to dll functions. Arrays only.
See https://docs.mql4.com/basis/variables/extfunctions
See https://docs.mql4.com/basis/variables/extfunctions
Stringo,
thank you very much.
Regards,
Renato.
thank you very much.
Regards,
Renato.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Could anyone give me an example of how passing an int value by reference to a DLL function?
I have tried the following code:
C++:
main.cpp of MyDll.dll:
MQL4:
Library (mydll_lib.mqh):
Script:
This isn´t works :(
Attention.: The DLL was written with Dev-C++ 4.9.9.2
Thank You!