use of undefined type 'type'
A type cannot be used until it is defined. To resolve the error, be sure the type is fully defined before referencing it. The following sample generates C2027:
class D; /* resolve the error by defining the class class D { public: void func() { } }; */ void main() { D *pD; pD->func(); // C2027 }