The following type conversions apply:-
Visual Basic | C/C++ |
---|---|
ByVal x As String | char *x |
ByRef x As Byte | unsigned char *x |
ByVal x As Long | long x |
Earlier versions used the Boolean
type for the bEncrypt variable. This has been
changed [Version 4.0] in the Declarations to take a 32-bit Long
type,
which still works in VB6 even if the variable passed has been dimensioned as a Boolean
type,
so this should not break any existing code.
We recommend that you use the defined constants ENCRYPT
and DECRYPT
in your VB6 and C code.