動態加載dll中的函數

var
  H: HWnd;
  p: Function(i_input:Integer):Integer; stdcall;
begin
        H := LoadLibrary(PChar('ABC.DLL'));
        if H <> 0 then
          begin
            p := GetProcAddress(H, PChar('DEF'));
            if Assigned(p) then p(123);
          end;
      FreeLibrary(h);
end;input

相關文章
相關標籤/搜索