1.操作系统为2000Server
2.套间组件ghtmts,组件:PmtsGH.mtsGH,
右键点击套间组件,选择高级页,在调试器中启动前面打勾。
选择调试器路径为
"C:/Program Files/Borland/Delphi6/Bin/bordbg60.exe "dllhost.exe /ProcessID:{CBD3C605-C864-4CE8-B6E8-9E33FE32ACCD}
改为:
C:/Program Files/Borland/Delphi6/Bin/delphi32.exe dllhost.exe /ProcessID:{CBD3C605-C864-4CE8-B6E8-9E33FE32ACCD}
3.Delphi打开组件程序,在Run菜单的Parameters中设置
Host Application:c:/WINNT/system32/dllhost.exe
Parameters:/ProcessID:{CBD3C605-C864-4CE8-B6E8-9E33FE32ACCD}
4.组件PmtsGH.mtsGH其中的一个方法:
…………
function TmtsGH.RegSubtractFee(const UserId: WideString;
MemberId: Integer;
const Tel: WideString;
Channel: Integer;
const Ghm,
ThisNext, Time, Medicare, Jzkh, Zrg: WideString;
Zx_id: Integer;
out svrfee, regfee, diagfee, fee: Integer): WideString;
begin
try
……
Setcomplete;
Except
on Exceptiondo
begin
SetAbort;
raise;
end;
end;
end;
……
在该方法前面设置一断点
然后按运行(f9),过一小段时间他又会处于编辑状态
5。调用程序:
uses PmtsGH_TLB……
procedure TFGuaHao.bbGuaHaoClick(Sender: TObject);
var
mtsGHObj:ImtsGH;
s:string;
begin
mtsGHObj:=ComtsGH.CreateRemote ('ght');-----(1)
s:=mtsGHObj.RegSubtractFee(UserId,Realuser,'3790808',4,Ghm,'131','11:30','0','7654321','1',3,svrfee,regfee,diagfee,fee);
showmessage(s);
end
当运行到(1)时,出错:‘无法创建终结点’,根本无法到组件断点!!!
谁能帮忙?加分!!!