X
xuexiaoyan
Unregistered / Unconfirmed
GUEST, unregistred user!
我想在客户端传递一个自定义类型的参数给服务器应用程序的方法,应怎样传递?
服务器端方法定义如下:
procedure TCliManagerApp.mTransaction(const userName: WideString;
AccountReg: OleVariant);
begin
...
end;
客户端:
type
rAccReg = Record
sValue: String;
cType: Integer;
end;
type
rAccountReg = Record
AccReg: array[0..1023] of rAccReg;
AccNum: Integer;
end;
AccountReg: rAccountReg;
调用
MailDataModule.SocketCon.AppServer.mTransaction(
UserName,
AccountReg
);
出错为类型不匹配,请问怎样解决?请各位赐教!!!
服务器端方法定义如下:
procedure TCliManagerApp.mTransaction(const userName: WideString;
AccountReg: OleVariant);
begin
...
end;
客户端:
type
rAccReg = Record
sValue: String;
cType: Integer;
end;
type
rAccountReg = Record
AccReg: array[0..1023] of rAccReg;
AccNum: Integer;
end;
AccountReg: rAccountReg;
调用
MailDataModule.SocketCon.AppServer.mTransaction(
UserName,
AccountReg
);
出错为类型不匹配,请问怎样解决?请各位赐教!!!