if(!file.Open("c:\\message.txt",CFile::modeRead,&fe))
{
fe.ReportError();
return FALSE;
}
else
{
CArchive ar(&file, CArchive::load);
int count;
ar>>count;
int i;
for(i=0;i<count;i++)
ar>>m_Msg[i];
ar.Flush();
ar.Close();
file.Close();
}
error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'class Cmessage' (or there is no acceptable conversion)
{
fe.ReportError();
return FALSE;
}
else
{
CArchive ar(&file, CArchive::load);
int count;
ar>>count;
int i;
for(i=0;i<count;i++)
ar>>m_Msg[i];
ar.Flush();
ar.Close();
file.Close();
}
error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'class Cmessage' (or there is no acceptable conversion)
