Originally Posted by rajeswaridvssnr
Run-Time Type Information is a mechanism that allows the type of an object to be determined during the program execution.
3 main elements to RTTI in MFC are

1.Dynamic_cast operator
Used for conversion of polymorphic types.
2.typeid - used for identifying the exact type of an object
3. type_info class
used to hold the type information returned by typeid.
RTTI in MFC can be done using RUNTIME_CLASS Macro in conjunction with CObject's IsKindOf member function. The argument to IsKindOf is a CRuntimeClass object, which you can get using the RUNTIME_CLASS macro with the name of the class.