例如我向我的DOC类中添加了CList<CWzdInfo1*,CWzdInfo1*> m_WzdInfo1List的数据成员(CWzdInfo1是我自定义的一个类)
那么在DOC类的DeleteContents需要重载以适应串形化
比如:
void CWzdDoc::DeleteContents()
{
// called with new and open document
// opportunity to initialize the data collections that make up our document
while (!m_WzdInfo1List.IsEmpty())
{
delete m_WzdInfo1List.RemoveHead();
}
C D o c u m e n t : : D e l e t e C o n t e n t s ( ) ;
}
那么在DOC类的DeleteContents需要重载以适应串形化
比如:
void CWzdDoc::DeleteContents()
{
// called with new and open document
// opportunity to initialize the data collections that make up our document
while (!m_WzdInfo1List.IsEmpty())
{
delete m_WzdInfo1List.RemoveHead();
}
C D o c u m e n t : : D e l e t e C o n t e n t s ( ) ;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货