C/C++ DLL & MetaTrader
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.
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!