O
opendelphi
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TWinForm2.TWinForm2_Load(sender: System.Object; e: System.EventArgs);
begin
fChannel := HttpChannel.Create();
ChannelServices.RegisterChannel(fChannel);
//error出现的位置
fBankManager := Activator.GetObject(
typeof(IBankManager),
'http://localhost:8099/BankManager.soap');
end;
编译错误信息
[Pascal Error] ClientForm.pas(366): E2010 Incompatible types: 'IBankManager' and 'Object'
[Pascal Fatal Error] BankClient.dpr(17): F2063 Could not compile used unit 'ClientForm.pas'
帮看看是何原因
begin
fChannel := HttpChannel.Create();
ChannelServices.RegisterChannel(fChannel);
//error出现的位置
fBankManager := Activator.GetObject(
typeof(IBankManager),
'http://localhost:8099/BankManager.soap');
end;
编译错误信息
[Pascal Error] ClientForm.pas(366): E2010 Incompatible types: 'IBankManager' and 'Object'
[Pascal Fatal Error] BankClient.dpr(17): F2063 Could not compile used unit 'ClientForm.pas'
帮看看是何原因