Do you know how to add RTCI support to your class?
  • Derive the class from CObject.

class CSimple : public CObject

{

};

  • Use the DECLARE_DYNAMIC macro in your class declaration, as shown here:
class CSimple : public CObject
{
DECLARE_DYNAMIC( CSimple )
};
  • Use the IMPLEMENT_DYNAMIC macro in the implementation file (.CPP) of your class. This macro takes as arguments the name of the class and its base class, as follows:
IMPLEMENT_DYNAMIC(CSimple, CObject )
for vctipsplusplus,
BijU
“We cannot have everything in life, but God is aware and is generous to give what we need.”

Do you know how to add RTCI support to your class?
Derive the class from CObject.

class CSimple : public CObject{
};Use the DECLARE_DYNAMIC macro in your class declaration, as shown here:class CSimple : public CObject{DECLARE_DYNAMIC( CSimple )};Use the IMPLEMENT_DYNAMIC macro in the implementation file (.CPP) of your class. This macro takes as arguments the name of the class and its base class, as follows:IMPLEMENT_DYNAMIC(CSimple, CObject )for vctipsplusplus,BijU”We cannot have everything in life, but God is aware and is generous to give what we need.”