Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Messages

Status
Not open for further replies.

EyesAllAfire

Programmer
Apr 10, 2002
5
US
I am trying to build a file handling program and I am using a pointer to a custom class for certain variables and functions. But everytime I used the pointer I get 3 errors.

error C2143: syntax error : missing ';' before '*'
error C2501: 'CPerson' : missing storage-class or type specifiers
error C2501: 'm_pCurPerson' : missing storage-class or type specifiers

These are the errors I am getting and I don't know how to fix them. Any ideas?
 
If You have defined CPerson class in another *.h - file, add the line
class CPerson;
before You use
CPerson m_pCurPerson;
If it is in the same header, You can define the class before You use it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top