尘
尘封
Unregistered / Unconfirmed
GUEST, unregistred user!
我在调用dll时,出现错误。代码如下:
library API;
{$DEFINE API}
uses
SysUtils,
Classes,
wSocket, //是ics控见包中的
TYPE ; //接口文件
Function Connect(gw_ip,port,username,passwd: String):integer;StdCall;
var
Socket1:TWSocket;
begin
Socket1.Port:=port;
Socket1.Addr:=gw_ip;
Socket1.Proto:='tcp';
Socket1.Connect;
Result:=1;
end;
exports
Connect;
end.
每次调用都会出现错误!
library API;
{$DEFINE API}
uses
SysUtils,
Classes,
wSocket, //是ics控见包中的
TYPE ; //接口文件
Function Connect(gw_ip,port,username,passwd: String):integer;StdCall;
var
Socket1:TWSocket;
begin
Socket1.Port:=port;
Socket1.Addr:=gw_ip;
Socket1.Proto:='tcp';
Socket1.Connect;
Result:=1;
end;
exports
Connect;
end.
每次调用都会出现错误!