Gustavo Hennemann:
Loading a DLL with WebRequest() is very suspicious, independently of any bug in your code or usage of FileClose.
Hi guys,
I'm trying to download some files by WebRequest(). The code works well to some kind of files, but when I try to download DLLs the function FileClose() clears the content of the file.
It's very clear, FileOpen() creates a file with size 0kB, then FileWriteArray() fills up the file with the expected size, and FileClose() changes the size to 0kB again.
What is happening?
Thanks
Alain Verleyen:
Loading a DLL with WebRequest() is very suspicious, independently of any bug in your code or usage of FileClose.
Loading a DLL with WebRequest() is very suspicious, independently of any bug in your code or usage of FileClose.
Hi @Alain Verleyen,
In reality I'm trying to convert BMP images into PNG. MQL5 has no resources to do this, so, I'm downloading a DLL to do the job automatically.

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
Hi guys,
I'm trying to download some files by WebRequest(). The code works well to some kind of files, but when I try to download DLLs the function FileClose() clears the content of the file.
It's very clear, FileOpen() creates a file with size 0kB, then FileWriteArray() fills up the file with the expected size, and FileClose() changes the size to 0kB again.
What is happening?
Thanks