
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
Hi, I am having problems with passing arrays to DLLs and would like to know what to do. Here is an oversimplified example script.
After debugging the dll, I found that I was getting a valid pointer on the first case and a NULL pointer on the second case. Note that the problem is only when the array is passed to the DLL and not when its passed to the MT4 function.
What am I missing here?
[EDIT]
If I use ArrayCopy to copy the Close Array things work. My guess is that the internal arrays do not work with DLLs.