Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CDumpContext::CDumpContext

 

Constructs an object of class CDumpContext.


      CDumpContext(
   CFile* pFile = NULL
);

pFile

A pointer to the CFile object that is the dump destination.

The afxDump object is constructed automatically.

Do not write to the underlying CFile while the dump context is active; otherwise, you will interfere with the dump. Under the Windows environment, the output is routed to the debugger via the Windows function OutputDebugString.

Example

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

Requirements

Header: afx.h

Show: