其实无论是什么语言写的DLL都遵循一样的调用形式,只要接口定义一制。一般是stdcall,分两种方式调用,一是静态,二是动态,静态如下, procedure a(p: integer); external 'sample.dll' name 'a' [index xxx]动态为 h:=loadlibrary('sample.dll'); if h>=32 then begin p:=GetProcAddress(h, 'a'); // call the function in the dll p(123); end;
procedure a(p: integer); external 'sample.dll' name 'a' [index xxx]动态为
h:=loadlibrary('sample.dll');
if h>=32 then
begin
p:=GetProcAddress(h, 'a');
// call the function in the dll
p(123);
end;