A
aynes
Unregistered / Unconfirmed
GUEST, unregistred user!
有个函数在C中的定义为:int WINAPI GetSMSGateWay ( char * )<br>我在Delphi中的定义为: function GetSMSGateWay(sChar):integer;stdcall;external 'RemexSMSInterface.dll';<br><br>作了个按钮,调用此函数,代码为:<br>procedure TForm1.Button5Click(Sender: TObject);<br>var<br> schar;<br> i:integer;<br>begin<br> i:=GetSMSGateWay(s);<br> showmessage(inttostr(i));<br>end;<br><br>我编译没问题,运行按了按钮后出错,提示为:<br> Project Project1.exe raised exception class EAccessViolation with<br> message 'Access violation at address 00419633 in module <br> 'PROJECT1.EXE'. Read of address 616E6983'. Process stopped. Use <br> Step or Run to continue.<br><br><br>请教各位高手,这是什么地方出错了。分不多请见谅。<br>