| title | Using CObject | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | na | |||||||||||||
| ms.date | 10/14/2016 | |||||||||||||
| ms.prod | visual-studio-dev14 | |||||||||||||
| ms.reviewer | na | |||||||||||||
| ms.suite | na | |||||||||||||
| ms.technology |
|
|||||||||||||
| ms.tgt_pltfrm | na | |||||||||||||
| ms.topic | article | |||||||||||||
| f1_keywords |
|
|||||||||||||
| dev_langs |
|
|||||||||||||
| helpviewer_keywords |
|
|||||||||||||
| ms.assetid | d0cd19bb-2856-4b41-abbc-620fd64cb223 | |||||||||||||
| caps.latest.revision | 7 | |||||||||||||
| ms.author | mblome | |||||||||||||
| manager | ghogen | |||||||||||||
| translation.priority.ht |
|
CObject is the root base class for most of the Microsoft Foundation Class Library (MFC). The CObject class contains many useful features that you may want to incorporate into your own program objects, including serialization support, run-time class information, and object diagnostic output. If you derive your class from CObject, your class can exploit these CObject features.
-
Add support for run-time class information, dynamic creation, and serialization to my derived class
-
Dump the object's data for diagnostic purposes
-
Validate the object's internal state (see MFC ASSERT_VALID and CObject::AssertValid)
-
See a list of CObject Frequently Asked Questions
Concepts
General MFC Topics
CRuntimeClass Structure
Files
Serialization