delphi动态链接库

2025-05-13 16:23:29
推荐回答(1个)
回答(1):

var
dll:Cardinal;
pp:function(x,y:integer):integer;
begin
dll:=LoadLibrary(PChar('xx.dll'));
if dll<>0 then
begin
@pp:=GetProcAddress(dll, 'abc');
if @pp<>nil then
begin
//调用函数
end;
FreeLibrary(dll);
end;
end;