Beta testhl.cpp

From: Martin Vallevand (martinv@synapse.net)
Date: Mon, 02 Mar 1998 23:51:17 -0500

Note on of the test applications in the beta works with VC 5, but very like
not has intended. In testhl.cpp there is:

#define ENVELOPE_TESTDATA ( ( BYTE * ) "Some test data" )
#define ENVELOPE_TESTDATA_SIZE sizeof( ENVELOPE_TESTDATA )

VC 5 compiles ENVELOPE_TESTDATA_SIZE as 4, the sizeof(BYTE *), rather the
the array length for some reason. In any case all reference to it work,
because it uses ENVELOPE_TESTDATA's first 4 characters, but the lengths
provided for storing the envelope are short.

My new improved version of the VB interface is nearing readiness, and all
the functionality in TESTHL and TESTLIB seem to work. When I get TESTAPP
working I'll make it available if requested.

I don't believe anyone could have used the old CAPI.BAS with VB 5. It is
riddled with errors in Declares and Types. As well VBCAPI.C doesn't work
correctly either.
Here was a beaut. See if you can find the problem faster then I did.

VBCRET VBcryptCreateContextEx(..cut..)
{
return VBcryptCreateContextEx( cryptContext, cryptAlgo, cryptMode,
ryptContextEx );
}

Martin.