I read the article "How to Exhange Data: A DLL for MQL% in 10 Minutes." I followed the instructions, and now have a working DLL with all the sample functions of the article. I need to add a new function similar to this one (from the article):
The C++ code:
The call from MQL5:
As you can see above, the function in the DLL fills the array like so:
The array is filled with values, this is done by C++ DLL project. Instead, I need MQL5 to initialize an array of doubles, fill it with values, and pass this array to the DLL. The DLL function receives the array and the values contained inside it. How would you modify this function to do that? Does anyone know? Any help would be greatly appreciated.
Thank you
Joe
Not a dumb question. I have the same one :)
What solution did you have?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I read the article "How to Exhange Data: A DLL for MQL% in 10 Minutes." I followed the instructions, and now have a working DLL with all the sample functions of the article. I need to add a new function similar to this one (from the article):
The C++ code:
The call from MQL5:
As you can see above, the function in the DLL fills the array like so:
//--- fill array with values
The array is filled with values, this is done by C++ DLL project. Instead, I need MQL5 to initialize an array of doubles, fill it with values, and pass this array to the DLL. The DLL function receives the array and the values contained inside it. How would you modify this function to do that? Does anyone know? Any help would be greatly appreciated.
Thank you
Joe