I have two classes with their respective namespace.
Class A has an object of class B, and can call methods from class B.
I want class B to call a method from class A as well, for that, I include "classA.h" in classB.h, but when I do that I get an error saying..
error C2653: 'classB_namespace' : is not a class or namespace name
I am using win32 sdk for this project and I have defined WinMain() in classA.cpp, in WinMain() I have an object of classA, which calls wndProct defined in classB.
I want to access this classA object from classB (so as to call that method in classA which is why I am doing all this..).
How, and more importantly, can it be done?? I used extern on the classA object in WinMain() didn't work.
So the bottomline is, I am not able to call that method from classB, which is defined in classA, using the object defined in WinMain().