BinToHex DLL for Win32 platforms
Copyright (c) 1997 SoftCircuits Programming(R)
Redistributed by Permission.

BinToHex takes any data and returns it in a hexadecimal
string. Although you can perform this in Visual Basic
alone, VB string overhead can make it slow if you must
repeat the process many times. BinToHex was written in
hand optimized assembly language and performs the
conversion as fast as it can possibly be done.

The InBuffer argument is the data to be converted. This
argument can be of any variable type (be sure to pass
string variables ByVal to obtain their contents).
OutBuffer is a string that receives the results. Count
is the number of bytes to be converted.

IMPORTANT: InBuffer must be at least Count bytes, and
OutBuffer must be at least Count * 3 bytes or HexToBin
may overwrite the output buffer and the program may
fault.

These files may be distributed freely on the condition
that they are distributed in full, and unmodified, and
that no fee is charged for such distribution with the
exception of reasonable media and/or shipping charges.
In addition, BINTOHEX.DLL and any or all portions of the
source code may be incorporated into your own programs,
and those programs may be distributed without payment of
royalties on the condition that such programs differ
substantially from the included demonstration program.

This example program was provided by:
 SoftCircuits Programming
 http://www.softcircuits.com
 P.O. Box 16262
 Irvine, CA 92623

Declare Sub BinToHex Lib "BINTOHEX.DLL" (InBuffer As Any, ByVal OutBuffer As String, ByVal Count As Long)
