download files with chrome

 
hi guys , i learned before to download with windows dll libraries (urlmon.dll) to download files , images or ... from internet explorer with URLDownloadToCacheFileW function  . but now my internet explorer dont works! do u have any function to download this files with chrome?
 

An other one where I don't understand anything...maybe I should take some rest

What are you asking for ? How is that related to this forum section which is about MT4/mql4, trading and coding ?

 
ejmin ejoni: hi guys , i learned before to download with windows dll libraries (urlmon.dll) to download files , images or ... from internet explorer with URLDownloadToCacheFileW function  . but now my internet explorer dont works! do u have any function to download this files with chrome?

If you want to avoid using DLL, then use the MQL WebRequest function.

If you still prefer using DLL, then use the standard Windows API DLL calls.

There is no need to depend on any browser, be it Internet Explorer or Edge or Chrome.

EDIT: If you still want to depend on a browser, then currently Windows 10 and 11 use the Microsoft Edge Webview2 API instead of the Internet Explorer API.

 
ejmin ejoni:
hi guys , i learned before to download with windows dll libraries (urlmon.dll) to download files , images or ... from internet explorer with URLDownloadToCacheFileW function  .

In what way has it stopped working? What is the error return value? Have you had a look on the internet for the many articles describing failed calls to URLDownloadToCacheFile()?

And, as Fernando Carreiro says, why not just use the built-in WebRequest instead?

ejmin ejoni:
 but now my internet explorer dont works! do u have any function to download this files with chrome?

You are mixing up the application Internet Explorer with system libraries which are tied up with Internet Explorer. When you call URLDownloadToCacheFile(), you are not invoking the [whole of the] Internet Explorer application. You are calling a function in a system library which is also used by Internet Explorer. You cannot use Chrome "instead", because you are not - as such - using Internet Explorer.

Fernando Carreiro #:

EDIT: If you still want to depend on a browser, then currently Windows 10 and 11 use the Microsoft Edge Webview2 API instead of the Internet Explorer API.

And you are also mixing up applications and libraries. The Edge webview is an alternative to the old-style embedding of the IE user interface as an ActiveX object (which is what MetaQuotes use for the Market tab in the MT4/5 terminal, for example). It is analogous and comparable to something like CEF. It is not a code library which makes available functions such as URLDownloadToCacheFile().

 
kdufgh #: And you are also mixing up applications and libraries. The Edge webview is an alternative to the old-style embedding of the IE user interface as an ActiveX object (which is what MetaQuotes use for the Market tab in the MT4/5 terminal, for example). It is analogous and comparable to something like CEF. It is not a code library which makes available functions such as URLDownloadToCacheFile().

Thank you for the information. I've never used the "URLDownloadToCacheFile" function nor "Microsoft Edge Webview2". I based my answer on what I found on the web about alternatives to using the embedded Internet Explorer API.

 
Fernando Carreiro #:

If you want to avoid using DLL, then use the MQL WebRequest function.

If you still prefer using DLL, then use the standard Windows API DLL calls.

There is no need to depend on any browser, be it Internet Explorer or Edge or Chrome.

EDIT: If you still want to depend on a browser, then currently Windows 10 and 11 use the Microsoft Edge Webview2 API instead of the Internet Explorer API.

thank you for your reply 🙏
 
kdufgh #:

In what way has it stopped working? What is the error return value? Have you had a look on the internet for the many articles describing failed calls to URLDownloadToCacheFile()?

And, as Fernando Carreiro says, why not just use the built-in WebRequest instead?

You are mixing up the application Internet Explorer with system libraries which are tied up with Internet Explorer. When you call URLDownloadToCacheFile(), you are not invoking the [whole of the] Internet Explorer application. You are calling a function in a system library which is also used by Internet Explorer. You cannot use Chrome "instead", because you are not - as such - using Internet Explorer.

And you are also mixing up applications and libraries. The Edge webview is an alternative to the old-style embedding of the IE user interface as an ActiveX object (which is what MetaQuotes use for the Market tab in the MT4/5 terminal, for example). It is analogous and comparable to something like CEF. It is not a code library which makes available functions such as URLDownloadToCacheFile().

thank u so much 🙏, i think your explains was perfect. maybe its beter that i learn webrequest