The following type conversions apply between VB6/VBA and C/C++:-
| VB6/VBA | C/C++ |
|---|---|
| ByVal x As String | char *x |
| ByRef x As Byte | unsigned char *x |
| ByVal x As Long | long x |
You can still use Boolean type for the fEncrypt variable in VB6/VBA,
which is equivalent to a 32-bit integer when passed to the core DLL.
We recommend that you use the defined constants ENCRYPT and DECRYPT in your VB6 and C code.