先定义你要调用的过程
type
TfuncName=function (参数:类型):PChar;stdcall;
调用
var
Thandle1:THandle;
TFunc1:TfuncName;
TProc:TFarProc;
begin
Thandle1:=LoadLibrary('动态库名.DLL');
if Thandle1> 0 then
begin
try
TProc :=GetProcAddress(ThEncrypt ,PChar('相对应的过程或函数));
if TProc <> nil then
begin
TFunc1:=TfuncName(TProc );
;
end;
finally
FreeLibrary(Thandle1);
end;
end;
end;