再下面是我在delphi中的调用:
var
itf:TCOClass_ld_interface;
i:integer;
begin
itf:=TCOClass_ld_interface.create(nil);
i:=itf.f_connect('*****,'sa','','ld_xxnchzyl');
// close;
end;
Dispatch Ild_interface;
GUID={7BE99889-EC6E-4835-97AD-3CA51615C704};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function f_connect(ls_servername:BSTR; ls_logid:BSTR; ls_logpass:BSTR; ls_database:BSTR): I2;
function f_disconnect;
function f_checkclinic_in(ls_card_id:BSTR; ls_name:BSTR; ls_idcard:BSTR): I2;
function f_getclinic_code(ls_card_id:BSTR; ls_name:BSTR; ls_idcard:BSTR): BSTR;
function f_checkinhos_in(ls_card_id:BSTR; ls_name:BSTR; ls_idcard:BSTR): I2;
function f_getinhos_code(ls_card_id:BSTR; ls_name:BSTR; ls_idcard:BSTR): BSTR;
function f_getinhos_rcpcode(ls_inhos_code:BSTR): BSTR;
function f_update_drug(ls_servername:BSTR; ls_logid:BSTR; ls_logpass:BSTR; ls_database:BSTR): I2;
function f_update_item(ls_servername:BSTR; ls_logid:BSTR; ls_logpass:BSTR; ls_database:BSTR): I2;
function f_import_inhosrcpmain(ls_inhos_code:BSTR; ls_rcp_code:BSTR; ldt_rcp_date:date; ls_crt_man:BSTR): I2;
function f_import_clinicrcp(ls_clinic_code:BSTR; li_sn:I4; ls_clinic_type:BSTR; ls_item_code:BSTR; ls_item_jm:BSTR; ls_item_name:BSTR; ls_item_spec:BSTR; ls_item_dosage:BSTR; ls_item_unit:BSTR; ldc_item_price:R8; li_item_num:I2; ldc_item_fee:R8): I2;
function f_import_inhosrcp(ls_inhos_code:BSTR; ls_rcp_code:BSTR; li_sn:I4; ls_rcp_type:BSTR; ls_item_code:BSTR; ls_item_jm:BSTR; ls_item_name:BSTR; ls_item_spec:BSTR; ls_item_dosage:BSTR; ls_item_unit:BSTR; ldc_item_price:R8; li_item_num:R8; ldc_item_fee:R8; ls_item_date:BSTR): I2;
Class COClass_ld_interface; // PowerBuilder 9.0.1 generated object
GUID={FD43E78A-BE9E-4891-8AA3-34AEDB6584BF};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function f_connect(ls_servername:BSTR; ls_logid:BSTR; ls_logpass:BSTR; ls_database:BSTR): I2;
function f_disconnect;
function f_checkclinic_in(ls_card_id:BSTR; ls_name:BSTR; ls_idcard:BSTR): I2;
function f_getclinic_code(ls_card_id:BSTR; ls_name:BSTR; ls_idcard:BSTR): BSTR;
function f_checkinhos_in(ls_card_id:BSTR; ls_name:BSTR; ls_idcard:BSTR): I2;
function f_getinhos_code(ls_card_id:BSTR; ls_name:BSTR; ls_idcard:BSTR): BSTR;
function f_getinhos_rcpcode(ls_inhos_code:BSTR): BSTR;
function f_update_drug(ls_servername:BSTR; ls_logid:BSTR; ls_logpass:BSTR; ls_database:BSTR): I2;
function f_update_item(ls_servername:BSTR; ls_logid:BSTR; ls_logpass:BSTR; ls_database:BSTR): I2;
function f_import_inhosrcpmain(ls_inhos_code:BSTR; ls_rcp_code:BSTR; ldt_rcp_date:date; ls_crt_man:BSTR): I2;
function f_import_clinicrcp(ls_clinic_code:BSTR; li_sn:I4; ls_clinic_type:BSTR; ls_item_code:BSTR; ls_item_jm:BSTR; ls_item_name:BSTR; ls_item_spec:BSTR; ls_item_dosage:BSTR; ls_item_unit:BSTR; ldc_item_price:R8; li_item_num:I2; ldc_item_fee:R8): I2;
function f_import_inhosrcp(ls_inhos_code:BSTR; ls_rcp_code:BSTR; li_sn:I4; ls_rcp_type:BSTR; ls_item_code:BSTR; ls_item_jm:BSTR; ls_item_name:BSTR; ls_item_spec:BSTR; ls_item_dosage:BSTR; ls_item_unit:BSTR; ldc_item_price:R8; li_item_num:R8; ldc_item_fee:R8; ls_item_date:BSTR): I2;