header include pattern, pattern includes header. Not going to work
Arpit T:
header.mqh
pattern.mqh
Im trying to resolve this error 'CPattern' - unexpected token, probably type is missing? Header.mqh 55 1
I have tried adding it as class but not working. I request to help if possible
Thank you.
Probably need forward declaration.
In Pattern.mqh, place that line
class CPattern;
before the #include
#include "Header.mqh"should look like:
//+------------------------------------------------------------------+ //| Pattern.mqh | //| Copyright 2018, DNG® | //| http://www.mql5.com/en/users/dng | //+------------------------------------------------------------------+ #property copyright "Copyright 2018, DNG®" #property link "http://www.mql5.com/en/users/dng" #property version "1.00" class CPattern; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ #include "Header.mqh"
Thank you. It fixed the issue
if(Pattern.Compare(ar_Objects.At(i),0)==0)
At this line its giving warning
deprecated behavior, hidden method calling will be disabled in a future MQL compiler version
If you could advice, that would be aweomse
Thanks
Amir Yacoby:
Probably need forward declaration.
In Pattern.mqh, place that line
before the #include

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
header.mqh
pattern.mqh
Im trying to resolve this error 'CPattern' - unexpected token, probably type is missing? Header.mqh 55 1
I have tried adding it as class but not working. I request to help if possible
Thank you.