Hi all,
I am hoping someone can help solve this one: How do I return a string to MT4 from a dll function?
You cannot allocate memory space in MQL so I can easily crash MT4 by sending back a long string. If you allocate memory in the dll the result is a memory leak?
I'd be really grateful for some assistance and a small sample function.
TIA edit: Could someone also show how to return a single string and an array of strings? Thanks.
I am hoping someone can help solve this one: How do I return a string to MT4 from a dll function?
You cannot allocate memory space in MQL so I can easily crash MT4 by sending back a long string. If you allocate memory in the dll the result is a memory leak?
I'd be really grateful for some assistance and a small sample function.
TIA edit: Could someone also show how to return a single string and an array of strings? Thanks.