USE_RTTI

The USE_RTTI macro is used to enable run-time type information (RTTI) in C++ projects. Run-time type information (RTTI) is a mechanism that allows for the type of object to be determined when the program is run.

This macro is required if you are using the dynamic_cast<> operator, the typeid operator, or the type_info class.

To enable this macro, use the following line:

USE_RTTI=1

This macro is disabled by default.

This macro is required when you use any of the following macros:

Comments

Using this macro is the same as using the /GR (Enable Run-Time Type Information) switch in the VC++ compiler.

For more information, see Run-Time Type Information on MSDN.

See Also

USE_MFC

USE_MFCUNICODE

 

 

Send comments about this topic to Microsoft

Build date: 5/3/2011