Undefined class name!
-
class CCombObj : public CObject { public: DECLARE_SERIAL( CCombObj ) class CProCombObj : public CCombObj
-
class CCombObj : public CObject { public: DECLARE_SERIAL( CCombObj ) class CProCombObj : public CCombObj
The error message in fact is clear:
CCombObj
symbol is undefined in the source currently under compilation. Maybe you've included definition for classCProCombObj
but not forCCombObj
. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
[my articles] -
class CCombObj : public CObject { public: DECLARE_SERIAL( CCombObj ) class CProCombObj : public CCombObj
Error is clear. because from the code u have given CProCombObj is a nested class in CCombObj. ie the complete definition of CCombObj is unknown for the complier when it find the following class declaration statement. class CProCombObj : public CCombObj { the complier need to get complete information about a class while using inheritance to construct the VTable. so that is why it showing the error. i think this will help u
-
Error is clear. because from the code u have given CProCombObj is a nested class in CCombObj. ie the complete definition of CCombObj is unknown for the complier when it find the following class declaration statement. class CProCombObj : public CCombObj { the complier need to get complete information about a class while using inheritance to construct the VTable. so that is why it showing the error. i think this will help u
Is there something wrong? I have a class by using manually GUI add class to generic class for a while the class to class that deriveded from CObject base class. The compiler has already this job be complated for the user's defination these classes just as in base defination?