按键盘上方向键 ← 或 → 可快速上下翻页,按键盘上的 Enter 键可回到本书目录页,按键盘上方向键 ↑ 可回到本页顶部!
————未阅读完?加入书签已便下次继续阅读!
_AFX_INLINE CArchive& AFXAPI operatorSerialize(*this);
}
}
C
511
…………………………………………………………Page 574……………………………………………………………
第篇 深入 MFC 程式設計
#define wNullTag ((WORD)0)
#define wNewClassTag ((WORD)0xFFFF)
#define wClassTag ((WORD)0x8000)
#define dwBigClassTag ((DWORD)0x80000000)
#define wBigObjectTag ((WORD)0x7FFF)
#define nMaxMapCount ((DWORD)0x3FFFFFFE)
A
void CArchive::WriteClass(const CRuntimeClass* pClassRef)
{
if (pClassRef…》m_wSchema == 0xFFFF)
{
TRACE1(〃Warning: Cannot call WriteClass/WriteObject for %hs。n〃;
pClassRef…》m_lpszClassName);
AfxThrowNotSupportedException();
本例CObList 串行内之元素种类(也就是「CObject
}
衍生类别」)只有一种(CStroke),所以nClassIndex
。。。
DWORD nClassIndex; 永远为1。于是输出资料8001。
if ((nClassIndex = (DWORD)(*m_pStoreMap)'(void*)pClassRef') != 0)
{
// previously seen class; write out the index tagged by high bit
if (nClassIndex 《 wBigObjectTag)
*this