void HexDump( const char* pszLine, BYTE* pby, int nBytes, int nWidth )
throw( CFileException );
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).
Dumps an array of bytes formatted as hexadecimal numbers.
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