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::HexDump
CDumpContext                                Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void HexDump( const char* pszLine, BYTE* pby, int nBytes, int nWidth )
  throw( CFileException );
 
  Parameter   Description
 
  <pszLine>   A string to output at the start of a new line.
 
  <pby>       A pointer to a buffer containing the bytes to dump.
 
  <nBytes>    The number of bytes to dump.
 
  <nWidth>    Maximum number of bytes dumped per line (not the width of
              the output line).
 
  Remarks
 
  Dumps an array of bytes formatted as hexadecimal numbers.
 
  Example
 
  char test[] = "This is a test of CDumpContext::HexDump\n";
  afxDump.HexDump( ".", (BYTE*) test, sizeof test, 20 );
 
  The output from this program is:
 
      . 54 68 69 73 20 69 73 20 61 20 74 65 73 74 20 6F 66 20 43 44
      . 75 6D 70 43 6F 6E 74 65 78 74 3A 3A 48 65 78 44 75 6D 70 0A
      . 00
 
 
                                     -♦-