description | title | ms.date | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|
Learn more about: Do I Have to Derive New Classes from CObject? |
Do I Have to Derive New Classes from CObject? |
11/04/2016 |
|
26021031-feaf-424c-80d1-9547c4409d6a |
No, you don't.
Derive a class from CObject when you need the facilities it provides, such as serialization or dynamic creatability. Many data classes need to be serialized to files, so it's often a good idea to derive them from CObject
. For an example of a class derived from CObject
, see the Scribble sample.