pChild->Text = Format( "0x%X", ARRAYOFCONST( ( ( int )ent.EntrySize ) ) );
pChild = pEntry->AddChild( "Value" );
switch ( ent.EntryType ) {
case 1 : // BYTE
if ( ent.EntrySize == 1 )
pChild->Text = Format( "0x%.02X", ARRAYOFCONST( ( ( int )( BYTE )ent.EntryValue ) ) );
else
throw Exception( "Unsupported!" );
break;
case 2 : // ASCII
if ( ent.EntrySize <= 4 )
pChild->Text = reinterpret_cast<LPSTR>( &ent.EntryValue );
else
pChild->Text = reinterpret_cast<LPSTR>( aTIFFHeader + ent.EntryValue );
break;
case 3 : // SHORT
if ( ent.EntrySize == 1 )
pChild->Text = Format( "0x%.04X", ARRAYOFCONST( ( ( int )( WORD )ent.EntryValue ) ) );
else
throw Exception( "Unsupported!" );