Thanks for the clarification, any link from the docs about this ?
None that I know of. Try the Russian forum, maybe you'll get some more advice.
Use static functions and pass your instance via functor call, in case you need access to its properties.
_orderCallback(&this,OrderTicket());
Thanks for the clarification, any link from the docs about this ?
None that I know of. Try the Russian forum, maybe you'll get some more advice.
Use static functions and pass your instance via functor call, in case you need access to its properties.
Hello,
I'm trying to use function pointer in my object, but i got "Pointer to this function type is not supported yet" error at compile.
Examples i have found in MQL4 documentation are not using pure object-oriented-programming and show how to do it in global scope, which is indeed working, but i want to do it in class scope.
Anyone could help me achieving this ?
Thank you.
I got the same error but it was because I was calling a variable when it is actually a function:
myTrade.ResultRetcodeAnd, as we know, functions must have parentheses. And voila, error solved
myTrade.ResultRetcode()
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I'm trying to use function pointer in my object, but i got "Pointer to this function type is not supported yet" error at compile.
Examples i have found in MQL4 documentation are not using pure object-oriented-programming and show how to do it in global scope, which is indeed working, but i want to do it in class scope.
Anyone could help me achieving this ?
Thank you.