D
dragonwzw
Unregistered / Unconfirmed
GUEST, unregistred user!
函数为:<br>function SubmitAExEx(OrgTON, OrgNPI: Byte; OrgAddr: LPCSTR; DestTON, DestNPI: Byte; DestAddr: LPCSTR;<br> PRI, RD, RP, SRR, MR, DCS, PID: Byte; Schedule, Expire: LPCSTR;<br> Default_ID: longword; UDHI: Byte; UDLen: longword; UserData, ServiceSubType: LPCSTR;<br> byMsgID: PByte; byPKTotal, byPKNumber, byMsglevel, byFeeUserType: Byte;<br> sSPID, sFeeType, sFeeAddr, sFeeCode: LPCSTR; byUserNum: Byte;<br> sDestAddrs: LPCSTR; SM_ID: Plongword; FCS: PByte): integer; external 'smeidll.dll';<br><br>如下调用:<br>procedure TForm1.Button5Click(Sender: TObject);<br>var<br> ret: integer;<br> byMsgID : Byte;<br> SM_ID : Longword;<br> FCS : Byte;<br> d: TSubmitAExEx;<br> Schedule,Expire: string;<br>begin<br> Schedule:=FormatDateTime('yyyy/MM/dd hh:mm:ss',Now);<br> Expire:=FormatDateTime('yyyy/MM/dd hh:mm:ss',Now+0.5);<br> ret:=d(2,1,'040222',1,1,'8613760818278',0,0,0,0,0,8,0,PAnsiChar(Schedule),<br> PAnsiChar(Expire),0,0,4,'test','icp',@byMsgID, //MAX_MSG_ID,CMPP的字段,消息ID<br> 1,1,0,1,'spid','01','','11',1,'040222',@SM_ID,@FCS);<br> showmessage(inttostr(ret));<br>end;<br><br>每次ret返回都是4, 请问是什么原因?<br>而且还会出现这样的错误提示:<br> 'Access violation at address 3134319 in modual "smeidll.dll".read of address 3134319.<br>请用过的高手急救呀!