16,748
社区成员
发帖
与我相关
我的任务
分享
var
dll:Cardinal;
P: function():PChar;
PC: PChar;
begin
dll:=LoadLibrary(PChar('GetCodeText.dll'));
if dll<>0 then
begin
@P:=GetProcAddress(dll, 'GetCodeText');
if @P<>nil then
PC := P;
FreeLibrary(dll);
end;
end;
//静态调用
function GetCodeText():pChar;stdcall;external 'GetCodeText.dll';