'–>' : left operand has 'class-key' type, use '.'
The operand to the left of the ->
operator is not a pointer. Use the period (.) operator for a class, structure, or union.
Example
struct X { int member; } x, *px; void main() { x->member = 0; // error, x is not a pointer px->member = 0; // OK, px is a pointer to an X x.member = 0; // OK }