Can anybody help me out?
I used to have an EA that make use of kernel32.dll's CreateFileA & WriteFile function to output a textfile to my desktop. It was perfectly working before build 600. After the patch, the EA could not output the textfile anymore. I understand that FileWrite() function will only output the textfile to \MQL4\Files folder which is not what I wanted.
FileName = "C:\\Users\\Lenovo\\Desktop\\data.txt";
int hFile = CreateFileA(FileName,GENERIC_WRITE,FILE_SHARE_READ,0,CREATE_ALWAYS,0,0);
int FileLength = StringLen(Buffer);
Print("Failed to clear datafile.");
Google is your friend . . .
From here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx
Unicode and ANSI names
To add comments, please log in or register