how do u identify RTTI in vc++
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
How to update all the views whenver document got updated ?
Have you ever used win32 APIs ?
1) Enable or disable a Cancel button at run time?
I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)
What does mfc stand for?
Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR using GetBuffer()? lptstr = string.GetBuffer(0);
1)dynamic creation of a Button ?
Tell us something about MFC?
If there is more than 100 control in a window how we can change the Taborder of a controls
Tell me about different kinds of synchranization objects ?
1)How to change a text of a button in runtime?
How to access document object from view ?