是可以的,dll是windows提供的模式,通用的
C中的动态库中定义
extern int PASCAL NET_Create( int NetType, const char *strIP, int port );
delphi中
implementation下面声明
function NET_Create(NetTyp:Integer; const strIP:string; port:Integer ):integer; stdcall; external NETDLL name 'NET_Create';
{$R *.dfm}
procedure ……
var a:integer;
begin
……
a:= NET_Create(1,'192.168.1.0',9652); //直接用,但是声明必须和动态库中的结构一样。
……
end;
end.