maybe you could help me solving this problem. I have create a simple DLL, like as described here:
DLL work when i use as parameter a Integer but when i switch to string,
MT5 come up with the message, he couldn't find the method:
2017.11.18 11:24:35.507 Test(EURUSD,M1) Cannot find 'testWchar_Ref' in 'Test\variableTest.dll'
This is my import in MT5:
Implementation in MT5:
Export in DLL:
compiled correctly. In my c++ Testprogram it works. Even when i leave
the DLL Method empty it appears. It must be the parameter.
How can i pass a string to a DLL, modify it and use it back in MT5 ?
In your C function you pass a reference to a char (1 character), but in your metatrader code, you pass a reference to a string (an array of characters).