It is clear that there is an export def function. It is clear that the dll should lie where necessary. It all works as it should.

The problem is only in the output of Russian characters, see the code mql4

Print("test "+num+" (вот этот русский шрифт не импортируется в С++)"); 

Side dll, cpp

 void logW(const wchar_t *text) { static bool first = true; if (FILE *file = fopen("log.txt", first ? "w" : "a")) { first = false; fwprintf(file, text); fwprintf(file, L"\n"); fclose(file); } } 

Can I make a display of Russian text?

  • Do you have the text in the file? - gbg
  • Yes, everything is displayed except for Russian letters. - Anonymous
  • zapakuyte file with broken letters in the archive and put on the exchanger - gbg
  • Or hex codes of the Russian string are required. Apparently different encodings are used. And if priatachitsya in debager, what will be in the variable text? - Unick
  • I did not solve the problem, it was too lazy. Replaced everything in English. But beforehand, MT4 itself cuts Cyrillic using c ++ modules. Only ansi encoding can be implemented there. - Anonymous

0