You are viewing an older revision! See the latest version

Compiler Error 153

Calling method on a pointer to a class instance without using the (*instance). shorthand of -> ?

ie. its one or the other

Class instance();
[...]
instance.method();

or

Class *instance = new Class();
[...]
instance->method();

---

It's possible to receive this error by adding empty parenthesis after a variable definition. <<code>>Timer myTimer();<</code>> instead of <<code>>>Timer myTimer;<</code>> instead of <<code>>>Timer myTimer;<</code>>


All wikipages