Click to See Complete Forum and Search --> : How can I serialize a CFont object?


Xiao
May 9th, 1999, 10:10 AM
I want to use a CArchive to serialize a CFont object, but this line got an Assertion:
*pOutArc << &sp.m_Font;
and this line got an compiler error:
*pInArc >> &sp.m_Font;
The error message was:
error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'class CFont *' (or there is no acceptable conversion)
What's the matter? Could you help me?
Thanks.