Discussion of article "Using WinInet.dll for Data Exchange between Terminals via the Internet" - page 3

 
Does not work in windows 7 x64, but works fine in windows xp x86. HttpOpenRequestW call does not work in MqlNet::Request method. I suspect that the function call parameters have changed in wininet.dll. Has anyone encountered such a problem?
Документация по MQL5: Основы языка / Функции / Вызов функции
Документация по MQL5: Основы языка / Функции / Вызов функции
  • www.mql5.com
Основы языка / Функции / Вызов функции - Документация по MQL5
 
uzurik:
Does not work in windows 7 x64, but works fine in windows xp x86. HttpOpenRequestW call does not work in MqlNet::Request method. I suspect that the function call parameters have changed in wininet.dll. Has anyone encountered this problem?

That's exactly what I caught today.

Everything works on a 32 bit terminal. (even in vin 7/64)

but on 64 bit terminal it doesn't.

 
Does not work in windows server 2008 R2 (x64)
 
try running it on terminal 32
 
ameboo:

Why use defaults from imported functions at all?

it is easier to make it yourself, spend as much time as it will take to disassemble it, but at least it will work properly.


This class, together with thisclass and many others (which I don't put out in the open access and I'm not going to do it yet) have been used for work for a long time with closed eyes.

And for reading data, and for copiers/signals, and for creating packages of automatic web installers, and licensing software, and for data exchange between users, and for work in the cloud. And just reading and parsing web pages.


So you don't need to read and ah-ah. If you are unable to understand the API of thirty years ago, it is only an indicator of your abilities.

 

Hi :)

InternetSetOption(W) is a good thing. At least for setting connection timeouts etc.

 
TheXpert:

Hi :)

InternetSetOption(W) is a good thing. At least for setting connection timeouts etc.


definitely Yes.

Practice has shown that without it MT can fail.

 

This article should be seriously edited, the internetLib.mqh included look to be deprecated and can caused a random invalid access in wininet.dll

You should use the internetLib included in this article to avoid difficulties -> Using WinInet in MQL5. Part 2: POST Requests and Files

This library do his work without issues 

 

Doesn't work on server applications. Too bad.

Any ideas what to use instead of wininet.dll ?

 

After couple of hours trying to to implement this buggy object I have found out that MQL5 has its native HTTP communication function WebRequest. See the documentation for more information.