Compiler Error C2222

'->' : left operand has struct/union type, use '.'

The left operand is a class, struct, or union rather than a pointer. To access a member, you must use the period (.) operator rather than the -> operator.