You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Looked at WinHttpConnect(). It has no implementation for multibyte encoding.
Can I use a DLL to shell and convert it?
No. I don't need it in a DLL. I know it's an option, but it's wrong...
wininet.dll, for example, all its functions work, but Winhttp has such a silly bug...
If you could call GetLastError from Kernel32, but mql4 is harmful and does not allow to make functions with identical names, even with different parameters...
By the way, have you tried to run this script on your machine? maybe it's just my problem ?
I understand that it's an option, but it's not the same...
For example, all its functions work with wininet.dll, but in Winhttp there is such a silly stall...
If you could call GetLastError from Kernel32, but mql4 is harmful and does not allow to make functions with identical names, even with different parameters...
By the way, have you tried to run this script on your machine? maybe it's just my problem ?
I understand that it's an option, but it doesn't work that way.
wininet.dll, for example, all its functions work, but Winhttp has such a stupid stoppage...
If you could call GetLastError from Kernel32, but mql4 is harmful and does not allow to make functions with identical names, even with different parameters...
GetLastError() should be called low-level --> RtlGetLastWin32Error(). Ilnur suggested it in his time. Here are some examples of how to use it.
WinHttpConnect() will not work in MQL4.
Nothing will work with WinHttpConnect() in MQL4.
You could try converting.
If I have time, I'll try to make an example. Otherwise... This C++ code should be converted to MQL4:
wstring should be replaced with an array of ints and this should be taken into account when recalculating the size.You could try converting.
If I have time, I'll try to make an example. Otherwise... This C++ code should be converted to MQL4:
The wstring needs to be replaced with an array of ints and take that into account when recalculating the size.I've got it like this:
I have this:
EMNIP, the standard does not guarantee the location of the string in a continuous block of memory, so using the &sStringW[0] construct is fraught.
Basically the same eggs. But mine is 100% according to standard :)
EMP, the standard does not guarantee string location in a contiguous memory block, so using &sStringW[0] construct is fraught with danger.
Same eggs in general. But mine is 100% according to standard :)
I didn't know...
Well, it seems that all (probably all) of Microsoft's implementations are OK with this, I can't vouch for the others.