This may seem weird but I have a problem in one of my programs where I have a class A which needs a variable of class B inside it, and the class B needs a pointer to class A inside it, so that i can determine which class is attached to what....
i get errors because in class A it says that the class B is not defined yet, and in class B it says class A isn't defined yet...
both of my header files which contain the separate classes include each other and i have tried to forward declare my classes e.g. class A; class B; but i get compiler errors such as:
error C2079: 'CFrame::menu' uses undefined class 'CMenu'
I need a pointer to classA in class B because i want to pass it to another class later on