class A { public: COtherClass m_var; // Here COtherClass is different class & am creating instance variable called m_var. protected: static void Display(); };
void A :: Display() { m_var.GetDocument(); //GetDocument() is the method in COtherClass. }
m_var.GetDocument();
this->m_var.GetDocument();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)