Compiler Error C2301

left of '->~identifier' must point to class/struct/union

The expression to the left of the -> operator does not evaluate to a pointer to a class, structure, or union.