how do u identify RTTI in vc++

Answers were Sorted based on User's Feedback



how do u identify RTTI in vc++..

Answer / amol vaidya

Check if class is derived directly or indirectly from
CObject. CObject provides facility of RTTI.

With this functionality enable IsKindof like functions can
be used and utilised any where for that object.

Is This Answer Correct ?    13 Yes 2 No

how do u identify RTTI in vc++..

Answer / zero zero...

Check if class is derived directly or indirectly from
CObject. CObject provides facility of RTTI check to its
derived classes.

 DECLARE_DYNAMIC and IMPLEMENT_DYNAMIC, permit run-
time access to the class name and its position in the
hierarchy. This, in turn, allows meaningful diagnostic
dumping.

 CObject::IsKindOf function to determine the class
of your objects at run time.

Is This Answer Correct ?    8 Yes 1 No

how do u identify RTTI in vc++..

Answer / santhosh

with the help of IsKindOf function is used to achieve RTTI.

Iskindof function is used to test the objects relationship to the given class.

this function works only for a class delared the below macros,
- DECLARE_DYNAMIC
- DECLARE_DYNCREATE
- DECLARE_SERIEL

Is This Answer Correct ?    0 Yes 0 No

how do u identify RTTI in vc++..

Answer / raghavender

In VC++ compiler project properties->C/C++ ->language-
>Enable Runtime Information to YES (/GR) compiler option

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More MFC Interview Questions

Difference between Debug and Release versions?

4 Answers  


1)How to change the size of a button at run time ?

1 Answers  


How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?

0 Answers  


1)dynamic creation of a Button ?

2 Answers   TCS,


Explain Doc/View architecture

6 Answers   Huawei,






What is the base class for most MFC classes?

7 Answers   CMC, Siemens,


What is socket?

3 Answers  


How to create a Modeless Dialog?

5 Answers  


Hi All, i am new for VC++ SDK. i want to get the IP Address of all the External device connected with my local machine.please give the code Regards, Praveer

1 Answers   TCS, Tech Mahindra,


What is the base class for MFC

3 Answers   HCL,


what is the difference between compiling and building?

1 Answers  


if no message handler is available for a message then will deal with the message ? does window proving any default mechanism?

2 Answers   Patni,


Categories