L
liujipeng
Unregistered / Unconfirmed
GUEST, unregistred user!
dll 部分pchar 也试过了function T_Api_Jc(buff:string
var S_order:string):integer;vari_t,i_w:integer;r_s:string;begin i_t:=Pos('<forbug>', buff)
i_w:=Pos('</forbug>', buff)
if (i_t =0) or (i_w =0) then begin t_api_jc:=0
S_order:=''
end else begin t_api_jc:=1
i_t:=Pos('<Od>', buff)
i_w:=Pos('</Od>', buff)
r_s:=copy(buff,i_t+4,i_w-(i_t+4))
s_order:=r_s
end;end;exportsT_Api_Jc;调用部分function T_Api_Jc(buff:string
s_o:string):integer
stdcall
external 'P_com_api.dll'varr_i:integer;r_o:string;p_charchar;beginr_i:=T_Api_Jc(edit1.Text,r_o);if r_i=1 thenshowmessage(r_o);调用出问题了高手来看下
var S_order:string):integer;vari_t,i_w:integer;r_s:string;begin i_t:=Pos('<forbug>', buff)
i_w:=Pos('</forbug>', buff)
if (i_t =0) or (i_w =0) then begin t_api_jc:=0
S_order:=''
end else begin t_api_jc:=1
i_t:=Pos('<Od>', buff)
i_w:=Pos('</Od>', buff)
r_s:=copy(buff,i_t+4,i_w-(i_t+4))
s_order:=r_s
end;end;exportsT_Api_Jc;调用部分function T_Api_Jc(buff:string
s_o:string):integer
stdcall
external 'P_com_api.dll'varr_i:integer;r_o:string;p_charchar;beginr_i:=T_Api_Jc(edit1.Text,r_o);if r_i=1 thenshowmessage(r_o);调用出问题了高手来看下