A class pointer to the class I come from
I have the following class:
[tag]
Code:
class myGui
{
public:
MyWidget w;
swmArray s;
GearWidget g;
quitDialog q;
int browseNum;
DirectoryWindow mw[20];
public:
myGui(void);
};
[/tag]
I want the members (which are other classes I made) to have a pointer to the instance of myGui to which they are a member.
For example in the class MyWidget I wish to have a member "myGui *mypointer;" thats points to the instance of myGui that contains my instance of MyWidget.
You see the problem. They will #include each other. How do I go about this?
-- Paul