H
hening
Unregistered / Unconfirmed
GUEST, unregistred user!
此com的一个方法是这样声明的
ADpoll_array(WORD buff[],int count);
在VB下如此调用:
Set card1 = CreateObject("KHCard")
.....
m = card1.ADpoll_array(ad_array, 10)
我在delphi中是这么写的:
procedure TForm1.Button1Click(Sender: TObject);
var
test:OleVariant;
i,m:integer;
ad_in:word;
ad_array:array[1..10] of word;
dig_in:Shortint;
begin
test:= CreateOleObject('KHCard');
......
ad_in:=1;
m := test.ADpoll_array(ad_array,10);//读10个数据进ad_array数组
end;
'm := test.ADpoll_array(ad_array,10);//读10个数据进ad_array数组'行
报错:[Error] rtptest.pas(52): Type not allowed in OLE Automation call
请问诸位大虾 诸如word buff[]的类型在delphi中是如何传递的?
ADpoll_array(WORD buff[],int count);
在VB下如此调用:
Set card1 = CreateObject("KHCard")
.....
m = card1.ADpoll_array(ad_array, 10)
我在delphi中是这么写的:
procedure TForm1.Button1Click(Sender: TObject);
var
test:OleVariant;
i,m:integer;
ad_in:word;
ad_array:array[1..10] of word;
dig_in:Shortint;
begin
test:= CreateOleObject('KHCard');
......
ad_in:=1;
m := test.ADpoll_array(ad_array,10);//读10个数据进ad_array数组
end;
'm := test.ADpoll_array(ad_array,10);//读10个数据进ad_array数组'行
报错:[Error] rtptest.pas(52): Type not allowed in OLE Automation call
请问诸位大虾 诸如word buff[]的类型在delphi中是如何传递的?