MQL5 Program Packer:
This is MQL5 project packer: assemble all source and resource files from dependencies into a single ZIP.
Author: Stanislav Korotky
This is an English language forum
Post in English
Very useful. Code easily understandable and customizable.
Thanks for sharing.
As I was just in need of such tool, I make it working for mql4.
It looks like you packed a bit tweaked ZIP-files (at least not the ones coming with the MQL5 packer).
For example, your version does not support empty files. Also I don't see the point of having common folder parameter as required when it's the
last parameter in specific methods (which requires you to add trailing ", 0)" in the calls even if FILE_COMMON
is not used).
For example, your version does not support empty files. Also I don't see the point of having common folder parameter as required when it's
the last parameter in specific methods (which requires you to add trailing ", 0)" in the calls even if FILE_COMMON
is not used).
I implements a similar tool by python. only include source file, available both in mt4&5. Instead of packing, I gather all the source file in one file. This cause the file very large, but easy use for my customer.
to use, edit the py file to change the mql_path and the source file.
Files processed: 1
Source length: 97067
Packed file saved: MQL5/Include/Report.mqh.zip
#include <MT4Orders.mqh> // https://www.mql5.com/ru/code/16006
#endif // __VIRTUAL__
#include <fxsaber\TradesID\TradesID.mqh> // https://www.mql5.com/ru/code/34173
#endif // #ifdef REPORT_REJECTS
I will try to figure out what happens. Currently the debugger does not allow me to trace the code line by line, as it skips many instructions and function calls.
Ok, I got it. Your source file is formatted with MAC rule - only CR symbol is used for new lines. You should use CRLF (Windows style) or LF (Linux style) instead. Please check your editing software documentation.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.