Hi guys, I was trying to access an object's member I've created in one file, from another file. The problem I think is that the member is a Private Implementation for that class. I've tried to "extern" the member with no luck. So how can I get the object from one class to another? I hope I made this clear enough...
To make things clearer -
//MyClass.h
//MyClass.cppCode:class MyClass { public: class PImpl; PImpl *p; }
and I need to access p in another header file, how?Code:class MyClass::PImpl { public: SomeClass * member; } MyClass::MyClass { p = new PImpl; p->member = SomeFunction(); }




Reply With Quote