Can I store the declaration of a class into a .mqh file in include directory and store the implementation of the class into a .ex4 file in library directory?
I tried, but in the main file using this class, all the member functions are compiled with errror "functon must have a body".
Then I searched in this forum, I found all the examples have class decaration and implementation in a single one .mqh file.
Must declaration and implementation of a class be in a single one .mqh file? Thank you!
I found a guide for moving class implementation to a library in article https://www.mql5.com/en/articles/362
- 2012.02.20
- o_O
- www.mql5.com
I found a guide for moving class implementation to a library in article https://www.mql5.com/en/articles/362
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Can I store the declaration of a class into a .mqh file in include directory and store the implementation of the class into a .ex4 file in library directory?
I tried, but in the main file using this class, all the member functions are compiled with errror "functon must have a body".
Then I searched in this forum, I found all the examples have class decaration and implementation in a single one .mqh file.
Must declaration and implementation of a class be in a single one .mqh file? Thank you!