VB to Delphi Program (Array)


2004-01-24 08:54:53 AM
delphi14
The VB(Visual Basic) Code:
bWorkedOK = r.WriteBinary(HKEY_CURRENT_USER, strRegPath, txtBinaryName.Text,
bytValue)
Dim bytValue(0 To 7) As Byte
Delphi:
bWorkedOK := AESreg.WriteBinary(HKEY_CURRENT_USER, strRegPath,
txtBinaryName.Text, bytValue);
bytValue: array[0..7] of Byte;
I get Type not allowed in Variant Dispatch call, but in VB(Visual Basic) it works fine.
AESReg is a ActiveX DLL I early binded using CreateOleObject etc. Everything
is working fine with the dll, except this one little thing, sending the
array like VB(Visual Basic) does. Any help would be appreciated
Chris