EA download file http - Problem to use a library (libcurl.dll)

To add comments, please log in or register
Leandro Oliveira
249
Leandro Oliveira  

I need to make the download of a file in my EA in background mode. Then I searched how I could to do it, and found that could to use a library of curl application called libcurl.dll. Then I downloaded and put it in my program, but the problem I don't know how can I test it, or how can I use the function of this library.

Can anyone help me?


I download the library here: https://www.dll4free.com/libcurl.dll.html

Jack Thomas
1635
Jack Thomas  
Leandro Moraes:

I need to make the download of a file in my EA in background mode. Then I searched how I could to do it, and found that could to use a library of curl application called libcurl.dll. Then I downloaded and put it in my program, but the problem I don't know how can I test it, or how can I use the function of this library.

Can anyone help me?


I download the library here: https://www.dll4free.com/libcurl.dll.html

You have to use the #import directive to make calls to the dll file

https://www.mql5.com/en/docs/basis/preprosessor/import


You might also want to take a look at WebRequest instead of the random dll file you downloaded from the internet.

https://www.mql5.com/en/docs/common/webrequest

It is best to avoid using .dll files whenever possible, and use the built in functions.

Documentation on MQL5: Language Basics / Preprocessor / Importing Functions (#import)
Documentation on MQL5: Language Basics / Preprocessor / Importing Functions (#import)
  • www.mql5.com
directive. For compiler to be able to correctly form the imported function call and organize proper transmission parameters, the full description of functions is needed. Function descriptions immediately follow the Imported functions can have any names. Functions having the same names but from different modules can be imported at the same...
Toan Ty
11
Toan Ty  
Jack Thomas :

You must use #import command to execute dll call to dll

https://www.mql5.com/en/docs/basis/preprosessor/import


You can want to see WebRequest instead of dll files you have downloaded from internet.

https://www.mql5.com/en/docs/common/webrequest

Best most most expired is not use any .dll file you can be used and use the integration in integration. 

Please make all of it to take a full enoug. đủ cho điện thoại hệ Android androi.. Xin cảm ơn

Leandro Oliveira
249
Leandro Oliveira  

Hi Jack Tomas and Toan Ty,

Thank you so much for yours helps, I solved the problem only using WebRequest() function, this much easier and so efficient.

To add comments, please log in or register