Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
You may use _wfopen function to open file with "wchar_t *" type filename.
And this is my code:
And it is a simple VC++ DLL project, no .def file required.
Can you show the mql5 test code also ?
Sure, the code is very simple.
After running the above mql5 script program, a "test.txt" file will be generated at the installation folder of MT5.
If we specify an absolute path, for example, "d:\\test.txt", the file will be created right there.
You may use _wfopen function to open file with "wchar_t *" type filename.
And this is my code:
And it is a simple VC++ DLL project, no .def file required.
thank you very much!!!
It's work!!!
So the string in metatrader is UNICODE!!!!!!, if you use char in the dll ,the program couldn't work normally
It‘s very interesting!!!!
At the first time , I realize the value of Unicode.
I met the trouble for two months ,but now it's not a problem .thank you !