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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie question

Status
Not open for further replies.

mangocinn

Programmer
Jul 26, 2001
66
US
I am very new at C++. So please ignore my ignorance.

In my class, I am trying to use the CCmdTarget Class. When I build, I receive an error saying "base class undefined". What does this mean and how to do I resolve it?

Please help.
 
Without seeing some code, it's hard to say.
But first thing I would check would be the spelling.
Then check whether you've included the correct header files.


--
 
The line that causes the error is in the header file for my class. It is where I declare my class.

class ClassName : public CCmdTarget
{
...
};

The only thing that is inside of the {} is the class constructor and the class destructor declarations.
 
Ok... I needed to include afxwin.h header file.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top