Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CDumpContext::CDumpContext
CDumpContext                                Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  CDumpContext( CFile* pFile )
  throw( CMemoryException, CFileException );
 
  Parameter   Description
 
  <pFile>     A pointer to the CFile object that is the dump destination.
 
  Remarks
 
  Constructs an object of class CDumpContext.
 
  The afxDump object is constructed automatically. The output from afxDump
  is sent to stderr.
 
  Do not write to the underlying CFile while the dump context is active;
  otherwise you will interfere with the dump.
 
  Example
 
  extern char* pFileName;
  CFile f;
 
  if( !f.Open( pFileName, CFile::modeCreate | CFile::modeWrite ) ) {
     afxDump << "Unable to open file" << "\n";
     exit( 1 );
  }
  CDumpContext dc( &f );
 
 
 
                                     -♦-