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
I understand that unzipping doesn't work ?
I look at the code and come to this fragment:
i.e. I understand correctly that unzipping does not work ?
Look at the code in debug mode, you will come to the right fragment. Unzipping works - I use it every day.
I downloaded the zip, there are several files in the archive. I'm trying to unzip and nothing works.I look at the code and come to this fragment:
so I understand correctly that unzipping does not work ?
No, it's not. Look carefully, UnpackOnDisk is a virtual method. It has no implementation in the abstract class Content. Unfortunately, MQL does not allow you to create virtual methods without implementation, so you have to put stoppers like the one you found. The real work of saving a file to disc is done by CZipFile::UnpackOnDisk and CZipDirectory::UnpackOnDisk. This is because creating a directory and a file on disc are different operations, so they are done by different methods.
The archive file could not be attached, if you need it I will send it to your mail.
That's actually the most important thing. First, make sure you are using the latest version of CZip and try unpacking again.
See the code in debug mode, you will get to the necessary piece. Unzipping works - I use it every day.
then what am I doing wrong. Here's my code:
Zip.LoadZipFromFile("info.zip",FILE_COMMON); Zip.UnpackZipArchive("",FILE_COMMON);I expect to see everything unzipped in the public folder, but it's empty. I don't need anything else. There is info.zip in the public folder.
then what am I doing wrong. Here is my code:
I expect to see everything unzipped in the public folder, but it's empty. I don't need anything else. There is info.zip in the public folder.
You'll have to specify the folder, because double quotes work with an error.
You will have to specify a folder, as double quotes work with an error.
Honestly, nothing has changed:
the result is also null.
p.s. I took an example from the article
I changed the url (in the terminal settings I allowed access) and that's all, the result is also zero. I thought I would transfer the parser from Sharp to here and I guess not. So much effort to just unzip the file and nothing (
Honestly nothing has changed:
the result is also nil.