I'm getting this error, but I can't understand, can anyone guide me?
I tried compiling but I think you need to share ZipDefines.mqh - neverthess I tried to fix the problem you posted in the image which is only partially visible but I got a message about a struct which has a constructor cannot be included in a union.
I found by commenting out the constructor phrase you get another error, which says you cannot include an empty structure, so just create a variable inside the struct to resolve that (example posted) - that seems to work.
Apart from that there are many other errors which would need the ZipDefines.mqh to resolve
struct ZipEndRecordOpen //: public ZipEndRecord { int one; };
I tried compiling but I think you need to share ZipDefines.mqh - neverthess I tried to fix the problem you posted in the image which is only partially visible but I got a message about a struct which has a constructor cannot be included in a union.
I found by commenting out the constructor phrase you get another error, which says you cannot include an empty structure, so just create a variable inside the struct to resolve that (example posted) - that seems to work.
Apart from that there are many other errors which would need the ZipDefines.mqh to resolve
thanks for helping, forgive me for this glitch here is the ZipDefines.mqh
//+------------------------------------------------------------------+ //| ZipDefines.mqh | //| Copyright 2015, Vasiliy Sokolov. | //| http://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2015, Vasiliy Sokolov." #property link "http://www.mql5.com" //+------------------------------------------------------------------+ //| Zip errors. | //+------------------------------------------------------------------+ enum ENUM_ZIP_ERROR { ZIP_ERROR_EMPTY_SOURCE, // Empty source file array ZIP_ERROR_BAD_PACK_ZIP, // Bad pack zip array ZIP_ERROR_BAD_FORMAT_ZIP, // Bad zip format file ZIP_ERROR_NAME_ALREADY_EXITS, // File name already exits ZIP_ERROR_BAD_URL // Bad url adress. Link is not zip archive or permissions of EA are not enough. }; #define DEFLATE 8 #define ZIP_LOCAL_HEADER 0x04034B50 #define ZIP_CENTRAL_HEADER 0x02014B50 #define ZIP_END_HEADER 0x06054B50
That helped - most of the problems go away but the main issue is with these statements:
un_header.zip_header = this; this = un_zip.zip_header;
It was unclear what you aim to do with this so I cannot say what the solution is
That helped - most of the problems go away but the main issue is with these statements:
It was unclear what you aim to do with this so I cannot say what the solution is
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I'm getting this error, but I can't understand, can anyone guide me?