[MSDN][VS6.0] RUNTIME_CLASS
저장소/VC++RUNTIME_CLASS
RUNTIME_CLASS( class_name )
Parameters
class_name
The actual name of the class (not enclosed in quotation marks).
Remarks
Use this macro to get the run-time class structure from the name of a C++ class.
RUNTIME_CLASS returns a pointer to a CRuntimeClass structure for the class specified by class_name. Only CObject-derived classes declared with DECLARE_DYNAMIC, DECLARE_DYNCREATE, or DECLARE_SERIAL will return pointers to a CRuntimeClass structure.
For more information, seeCObject Class Topics in Visual C++ Programmer’s Guide.
Example
// example for RUNTIME_CLASSCRuntimeClass* prt = RUNTIME_CLASS( CAge );ASSERT( lstrcmp( prt->m_lpszClassName, "CAge" ) == 0 );
See Also DECLARE_DYNAMIC, DECLARE_DYNCREATE, DECLARE_SERIAL, CObject::GetRuntimeClass, CRuntimeClass
'저장소 > VC++' 카테고리의 다른 글
[MSDN][VS6.0] ASSERT (0) | 2009.09.22 |
---|---|
[MSDN][VS6.0] IMPLEMENT_DYNCREATE (0) | 2009.09.22 |
[MSDN][VS6.0] DECLARE_DYNCREATE (0) | 2009.09.22 |
[MSDN][VS6.0] Predefined Macros (0) | 2009.09.22 |
[Error/Warning] fatal error C1902 (0) | 2009.09.22 |