I have a class C1 with CString aaa (public)
I have a class C2 which needs to display aaa.
I tried the following:
include C1.h in my C2 implementation file
declare aaa static (since it is allways the same once it is set by a function of C1)
from in C2: MessageBox(C1::aaa,"eee",0);
this gave error:
from in C2: MessageBox(first.aaa,"eee",0);
neither of the two worked.
so, if I prefer not to declare aaa global, how should I access aaa from C2 ??
Thanks in advance.