mql_requests icon indicating copy to clipboard operation
mql_requests copied to clipboard

When i try to run this library on MT5 i got those erros.

Open Senpai-Codes opened this issue 3 years ago • 5 comments

'IsDllsAllowed' - undeclared identifier requests.mqh 78 13 ')' - expression expected requests.mqh 78 27 declaration of 'headers' hides global variable requests.mqh 234 13 'GetLastError' - wrong parameters count requests.mqh 241 36 built-in: int GetLastError() requests.mqh 241 36 'GetLastError' - wrong parameters count requests.mqh 248 80 built-in: int GetLastError() requests.mqh 248 80

Senpai-Codes avatar Jun 13 '22 19:06 Senpai-Codes

I'm getting the same error, has anybody been able to get past this?

cybervanes avatar Jun 12 '23 01:06 cybervanes

same here

biohazardxxx avatar Feb 03 '24 10:02 biohazardxxx

I'm getting the same in MQL5.. @vivazzi image

rafaelcapucho avatar Feb 13 '24 14:02 rafaelcapucho

I managed to resolve it, @biohazardxxx @cybervanes @Senpai-Codes

I disabled the call to this function myself in the requests.mqh file, because it isn't defined anywhere: image

and remove the param from GetLastError(err), it should be: GetLastError(): image

rafaelcapucho avatar Feb 13 '24 15:02 rafaelcapucho

Well, it is compiling now, but It returning errors during executing, during the call to HttpSendRequestW it fails with error 5035: image

and I can't really see the implementation of HttpSendRequestW because it is inside the wininet.dll, its a sad because this lib had a lot of potential.

rafaelcapucho avatar Feb 13 '24 15:02 rafaelcapucho