This may seem strange, but I have a problem in one of my programs where I have a class A that needs a class B variable inside it, and class B needs a pointer to class A inside it so that I can determine which class it is bound to what ....
I get errors because in class A he says class B is not defined yet, and in class B he says class A is not defined yet ...
Both of my header files, which contain separate classes, include each other, and I tried forwarding to declare my classes, for example. class A; class B; but I get compiler errors like:
error C2079: 'CFrame::menu' uses undefined class 'CMenu'
I need a pointer to class A in class B because I want to pass it to another class later.
Kaije source
share