'CPattern' - unexpected token, probably type is missing? Header.mqh
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
Probably need forward declaration.
In Pattern.mqh, place that line
before the #include
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.