| 释义 | CDumpContext::CDumpContext 
 CDumpContext(CFile* pFile);
 throw(CMemoryException,CFileException);
 
 参数:
 说明:
 构造一个CDumpContext类对象,afxDump类被自动构造。
 在堆上下文处于活动状态时,不要向底部的CFile 写入,否则将会阻碍堆。在Windows 环境下,输出通过Windows 函数OutputDebugString 通向调试程序。
 
 示例:
 //example for CDumpContext::CDumpContext
 CFile f;
 if( !f.Open( "dump.txt", CFile::modeCreate | CFile::modeWrite ) )
 {
 afxDump << "Unable to open file" << "\";
 exit(1);
 }
 CDumpContext dc( &f );
 |