PDA

Click to See Complete Forum and Search --> : [VB6, XP+] Hex Dump Byte Array


dilettante
Jun 21st, 2008, 02:59 PM
Often you simply have to take a peek at what your program is actually working with. Just as often this means you need a quick hex dump of some data.

This project demonstrates the use of a small drop-in Form you can use to display any simple Byte array in hex. In the example a file is loaded in via binary I/O and dumped.

Since frmDump is using the Crypto API to do the heavy lifting here you can't use this technique in ancient versions of Windows (prior to Windows XP). The alternative there would be to code one up the hard way.

Note that because the function HexDump() is exposed as a public method of frmDump it can also be used in the Immediate window for debugging too.