Forum

C++ dll design

Hello. I am studying programming in MQL4. I have a question whether the pattern from this article https://www.mql5.com/en/articles/5798 contains the correct syntax for the class written in C ++ for MQL4? I have a few problems and I do not know if they result from a poor dll design

String from C++ dll

Hello. I'm learning coding in MQL4. I'm having trouble getting a string from my C++ dll file. I tested in MQL5 works without a problem. Can somebody help me? C++ code: PROJECT1_API void fnReplaceString(wchar_t* text) { wchar_t replaceText[] = L "987654321" ; memcpy(text, replaceText