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
Well this is my situation: I speak about two include files: Errors.mqh and CmyClass.mqh both in ..\MQL4\Include\ which I want to compile individually to detect 'grammatical' errors!
I created a class CmyClass.mqh which contains the class method: bool CmyClass::sndOrd(..) the mt4 call OrderSend(..) - with its specific parameters that are different to the function with the same name for mt5!
It compiles without an error!
Now I copied the class method bool CmyClass::sndOrd(..) with the mt4-method with OrderSend(..) to another file: MQL4\Include\Errors.mqh.
This Errors.mqh compiles without any error previously but after 1) copying the whole method into is and re-naming it to bool __template__sndOrd(..):
Now I start playing around!
#ifdef __MQL4__ ... #endif) - and that compiles with no Error - even though the Class CmyClass must be unknown (I just compile Errors.mqh)!
So this leads to my following questions:
Thanks and a nice Sunday.
Calli
PS: To create a dynamic behaviour I wrote in Errors.mqh which compiles without any error!!:
Unfortunately I think if I tell this to the Service Desk I'll get the answer: We have no intentions to change this.