网站首页  词典首页

请输入您要查询的计算机术语:

 

术语 CDumpContext::CDumpContext
释义 CDumpContext::CDumpContext

CDumpContext(CFile* pFile);
  throw(CMemoryException,CFileException);

参数:
cFile作为堆目的地的CFile对象的指针。

说明:
构造一个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 );
随便看

 

MFC类库中文详解手册包含4274条MFC类库参考词条,基本涵盖了Microsoft基本类库中的类、全局函数、全局变量和宏的内容,是计算机编程的有利工具。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 12:26:24