inno setup 中调用dll依赖其他dll

来源:互联网 发布:价格表用什么软件 编辑:程序博客网 时间:2024/05/21 14:29

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;

原创粉丝点击