|
Hello,
a need a byte-array for an ocx function. In C it looks like this:
BYTE pKey[8];
pKey[0] = 0x77;
pKey[1] = 0xFB;
pKey[2] = 0xD9;
pKey[3] = 0x15;
pKey[4] = 0x82;
pKey[5] = 0xE8;
pKey[6] = 0x1D;
pKey[7] = 0xD1;
In dolphin I build this one:
a1 := 16r77.
a2 :=16rFB.
a3 :=16rD9.
a4 :=16r15.
a5 :=16r82.
a6 :=16rE8.
a7 :=16r1D.
a8 := 16rD1.
ba := ByteArray new:8.
ba at:1 put:a1;
at:2 put:a2;
at:3 put:a3;
at:4 put:a4;
at:5 put:a5;
at:6 put:a6;
at:7 put:a7;
at:8 put:a8.
But it doesn't work, I got an error: "Invalid parameter passed to API function".
Does anybody know how to build the right array?
Thanks
Dimitri Minich
|