I'm having a bit of trouble adding derived objects of CObject to a CObArray object. I get the following error:
error C2243: 'type cast' : conversion from 'DoobyObj *__w64 ' to 'CObject *' exists, but is inaccessible
This is just a test for a later prject (hence the stupid class name). I need the DoobyObj class to inherit from CObject class so that I can serialize the CObArray object.
The error occurs on the Add line:
void SerObject::addDoobyObject(DoobyObj dO)
Here is the definition of DoobyObj:
class DoobyObj : CObject
DECLARE_SERIAL( DoobyObj )
void Serialize(CArchive& archive );
Can anyone solve my problem??