多层错误,错误信息:Method 'GetClerkBasicInformation' not Supported by automation object!我

  • 主题发起人 主题发起人 laibin
  • 开始时间 开始时间
L

laibin

Unregistered / Unconfirmed
GUEST, unregistred user!
多层错误,错误信息:Method 'GetClerkBasicInformation' not Supported by automation object!我该怎么办呀!急呀!在线等待!大虾快援手呀! (100分)<br />我在服务器端建了个方法:GetClerkBasicInformation
参数SInfo,类型Variant *, Modifier为[out,retval]
过程如下:
function TKLPOS.GetClerkBasicInfomation: OleVariant;
begin
fnOpenSQL('select * from bman');
result:=adoOpenSQL.Recordset;
end;
客户端调用如下:
procedure TClerkManageForm.BitBtn1Click(Sender: TObject);
begin
dmclient.DCOMConnection1.AppServer.GetClerkBasicInformation;
end;
结果提示出错!
Method 'GetClerkBasicInformation' not Supported by automation object!
为什么我的方法不支持自动化对象呀!哪位大虾帮我看看呀!应该怎么修改?
 
把服务器删除了,重新注册服务器。
 
要使用_recordset这种类型好象要引入它的库
 
不是这样的吧!
那是为什么呀!
请高手指教!
 
你在type libary中加入method了吗?
 
肯定加了!
不知道为什么会出现这样的情况!
我用Remote DataModule,不使用automation object
这样有关系吗?
请会的大虾帮帮我吧!
我快急疯了!
 
GetClerkBasicInfomation的语句不对吧!
fnOpenSQL('select * from bman');有问题
 
谢谢大家了,问题解决了!
我在服务端的方法少了个字母!
唉浪费我大半天时间!
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
978
import
I
后退
顶部