Category: MFC

MFC: CObject class (Part – 4)

In our previous articles we have discussed about CObject‘s “run-time class information”, “serialization support” and “dynamic object creation” features. In this articles I am going to discuss about CObject‘s “object diagnostic support” feature. Object diagnostic feature is useful to provide additional information…

MFC: CObject class (Part – 3)

As of now we have discussed about CObject class features “run-time class information” and “serialization support” in our previous articles MFC: CObject class (Part – 1) and MFC: CObject class (Part – 2) respectively. In this article I am going…

MFC: CObject class (Part – 2)

CObject supports object serialization. One of the MFC’s great feature, which allows to store and retrieve the object’s current state. To enable this feature in our code: We must add DECLARE_SERIAL macro into our class declaration. IMPLEMENT_SERIAL macro must be…

MFC: CObject class (Part – 1)

CObject is the base class for almost all classes in Microsoft Foundation Class (MFC) library. A class is qualified as a MFC based class by deriving its from MFC’s base class CObject. Once the normal class is derived from CObject…

MFC: Convert C++ Class to MFC based class

Microsoft Foundation Classes (MFC) are used to develop Windows based applications. MFC supports Document-View architecture; where data management separates from presentation layer. MFC wraps portions of Windows API C++ classes and enables to use them easily. In this article, we…