delphi 下的 dll 调用,改为 vfp 调用,如何做?
procedure TForm1.Button1Click(Sender: TObject);var
OldPassWord,TemStr:string;
RTurn,State,CardNo,LssjCount,Balance,butiemoney,butietime , yj,todayxfje,todayxftime,GB,Checkjh,CheckLimit,Isclear,i:Integer;
LimitDate,Name,mima:PChar;
begin
GetMem(Name,20);
GetMem(mima,10);
GetMem(LimitDate,20);
RTurn:=ReadAllInfo(6,10,'FFFFFFFFFFFF',State,CardNo,Name,LimitDate,LssjCount,Balance,butiemoney,todayxfje,todayxftime,butietime,GB,yj,Checkjh,CheckLimit,Isclear , mima);
IF RTurn=1 then begin
edit1.Text:= Format('%.5d',[CardNo]);
end ;
TemStr:= IntToStr(Balance) ;
Application.MessageBox(PChar('卡上余额:'+TemStr),'提示',64) ;
edit2.Text:= TemStr ;
end;
=====================================以上是delphi================================
DECLARE _ReadAllInfo@76 IN "ICXF.DLL" AS ReadAllInfo ;
INTEGER port, INTEGER AreaNumber, STRING MM, INTEGER state, INTEGER cardno, ;
STRING @ chinaxm, STRING @ LogOutDate, INTEGER LssjCount, INTEGER balance, INTEGER butiemoney, ;
INTEGER todayxfje, INTEGER todayxftime, INTEGER butietime, INTEGER GB, INTEGER yj, ;
INTEGER Checkjh, INTEGER CheckLimit, INTEGER Isclear , STRING @ Mima
State=0
CardNo=0
chinaxm=Replicate(CHR(0), 20)
LogOutDate= Replicate(CHR(0), 10)
LssjCount=0
balance=0
butiemoney=0
todayxfje=0
todayxftime=0
butietime=0
GB=0
yj=0
Checkjh=0
CheckLimit=0
Isclear =0
mima=Replicate(CHR(0), 20)
ReadAllInfo(6,10,"FFFFFFFFFFFF",State,CardNo,;
@ chinaxm,@ LogOutDate,LssjCount,balance,butiemoney,;
todayxfje,todayxftime,butietime,GB,yj,;
Checkjh,CheckLimit,Isclear ,@ Mima)
MESSAGEBOX(CardNo)
===================================以上是改为 vfp===============
问题:ReadAllInfo 这个调用失败 (执行到这个函数时)
错误:
declare DLL call caused an exception