I've been trying to use windows dll function calls to retrieve data from the web, and using it in an indicator. All works fine using calls like InternetOpenA, InternetOpenUrlA and InternetReadFile.
My problem is that some of the data retrieved might also be in russian, which makes using the ansi versions of the above functions obsolete. I've tried to use InternetOpenW which returns a valid handle, but InternetOpenUrlW (using the same parameters I used in InternetOpenUrlA ) returns a zero (NULL) handle.
So the real question is, is InternetOpenUrlW failing because mql4 only uses ansi strings (I'm assuming here)?
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.
Hi,
I've been trying to use windows dll function calls to retrieve data from the web, and using it in an indicator. All works fine using calls like InternetOpenA, InternetOpenUrlA and InternetReadFile.
My problem is that some of the data retrieved might also be in russian, which makes using the ansi versions of the above functions obsolete. I've tried to use InternetOpenW which returns a valid handle, but InternetOpenUrlW (using the same parameters I used in InternetOpenUrlA ) returns a zero (NULL) handle.
So the real question is, is InternetOpenUrlW failing because mql4 only uses ansi strings (I'm assuming here)?
Thanks in advance
--
Hein.