I'm trying to serialize a GUID object in MFC. When I try to archive, I get the following error
My code snippet is thisbinary '<<' : no operator defined which takes a right-hand operand of type 'struct _GUID' (or there is no acceptable conversion)
How shall I proceed?Code:void MyClass :: Serialize(CArchive &ar) { CObject::Serialize( ar ); if( ar.IsStoring()) { ar << m_GUIDVariable; } else { ar >> m_GUIDVariable; } }




Reply With Quote
