inno setup 中调用dll依赖其他dll

    技术2022-05-19  20

    1、dll 导出的函数 加上delayload的选项

    function IsDX9Exist():Integer; external 'IsDX9Exist@files:CheckInstalled.dll stdcall delayload';

     

    2、解压

    function InitializeSetup(): Boolean;

    。。   ExtractTemporaryFile('PhysXLoader.dll');   Result := True;

    。。

     

    3、调用

    strPath := ExpandConstant('{tmp}{/}PhysXLoader.dll');       if 0 <> LoadDLL(strPath, iErrCode) then begin

    。。。

     

    end;


    最新回复(0)