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
Yeah, the attached file works. But mine doesn't. That's weird.
Yeah, the attached file works. But mine doesn't. That's weird.
Repackage it with something else.
Repackage it with something else.
I get this file via webrequest. Zip opens it normally, Sharp has no problems with it either. Repackaging by hand is not an option. The whole point is automation.
I get the file here: http://api.bestchange.ru/info.zip.
I get this file via webrequest. Zip opens it normally, Sharp also has no problems with it. Repackaging by hand is not an option. The whole point is automation.
I get the file here: http://api.bestchange.ru/info.zip.
I also pull zips from the net. But I was not "lucky" like you. This is already to the author of the library. I doubt that ZIP-format has not been modified since its creation.
I doubt that the ZIP format has not been modified since its creation.
It could be, though the authors update it every 5 seconds. There's no sense to edit it manually either.
Whatever. I'll leave it as it is then. It's just that some of the data is parsed through µl, so I thought I'd move it all here. I guess that's not the case.
I get this file via webrequest. Zip opens it normally, Sharp also has no problems with it. Repackaging by hand is not an option. The whole point is automation.
I get the file here: http://api.bestchange.ru/info.zip.
Thanks for the message. We'll figure it out.
As for the zip format itself, it can be very different, firstly, and secondly, a lot of libraries that package data in zip treat its format with extreme disregard (hello Microsoft;) So you have to dance around the binary with a tambourine, implying what's inside. Let me remind you that CZip is an open non-commercial project. So you can't hope for its omnivorousness by feeding it all sorts of crap, so please understand this fact.
Thanks for the message. We'll look into it.
As for the zip format itself, it can be very different, firstly, and secondly, a lot of libraries that package data in zip treat its format with extreme disregard (hello Microsoft;) So you have to dance around the binary with a tambourine, implying what's inside. Let me remind you that CZip is an open non-commercial project. So you can't hope for its omnivorousness by feeding it all sorts of crap, so please understand this fact.
Vasily, no complaints, but in any case I hope that this issue will be resolved positively. :)
Vasily, hello!
There is a need to convert a byte sequence of a ZIP-file obtained by WebRequest into a ZIP-archive and unpack it to disc using MQL5 tools.
After reading your article, I realised that this may be a solution. However, I can't apply this solution - when compiling, MetaEditor can't build the executable file citing errors in the CZip class library.
Is it possible to use separately methods of CZip class, in particular CreateFromCharArray() and UnpackZipArchive(), including them directly in the script code and how to do it correctly?
Thanks in advance.
The notorious casting of structures is swearing. Keep the corrected version in the attachment.
#include <Zip\Zip.mqh>Vasily, please correct the library for mt5.
I took the library from the article.