CDumpContext::CDumpContext

构造对象选件类 CDumpContext

CDumpContext( 
   CFile* pFile = NULL 
);

参数

  • pFile
    为了使转储目标的 CFile 对象的指针。

备注

afxDump 对象自动构造。

当转储上下文处于活动状态时,不写入基础 CFile ;否则,您会影响转储。 在Windows环境下,输出传送到调试器通过Windows功能 OutputDebugString

示例

CFile f;
if (!f.Open(_T("dump.txt"), CFile::modeCreate | CFile::modeWrite)) 
{
   AFXDUMP(_T("Unable to open file\n"));
   exit(1);
}
CDumpContext dc(&f);      

要求

Header: afx.h

请参见

参考

CDumpContext Class

层次结构图