5,392
社区成员
发帖
与我相关
我的任务
分享
function Registration(PersonAccountInfo: pchar; TransType: integer; MedType,
ReimbFlag, InHosNo, DeptNo, SysDate, UserName, Prev1, Prev2, Prev3,
DataBuffergh: pchar): integer; stdcall; external 'F:\收费端最新程序\DBLib.dll';
声明可以简写成这样:
function Registration(PersonAccountInfo:pchar;TransType:integer;MedType,ReimbFlag,InHosNo,DeptNo,SysDate,UserName,Prev1,Prev2,Prev3,DataBuffergh:pchar):integer;stdcall;external 'F:\收费端最新程序\DBLib.dll';
调用,这样试试:
var
ghsucc:Integer;
DataBuffergh:PChar;
begin
DataBuffergh:=strAlloc(1024);
ghsucc:=Registration(...,DataBuffergh); {前面的参数,传固定值试试}
ShowMessage(DataBuffergh); {显示结果}
strDispose(DataBuffergh);
end;