Posted on 2000-03-26
Hello. This is my problem:
I have defined a class which is a list: CList. The list is composed by elements of another class: CEnsemble.
OK, here is the code of the header file:
CEnsemble(CString); void WriteName (CString); CString ReadName (); CEnsemble* GetNextPtr(); void SetNextPtr (CEnsemble*); void SetNumber (int);
class CListe: public CDialog
CEnsemble* listHead; int NoOfNodes;
CListe(); void displayList();
void InsertList(CString); int GetNoOfNodes();
Now, I'd like to insert a list (CList) as a private property of CEnsemble. The problem is that the definition of CList is before the definition of CList and then it will not recognize the CList class. What can I do???
Thanks in advance.