Inno Setup的函数指针在installer中具体如何使用?

更新于
2026-10-05 04:56:23
0阅读来源:SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计209个文字,预计阅读时间需要1分钟。

Inno Setup 是否支持函数指针?我在文档中找不到相关内容。我知道 Delphi / Pascal 支持它们,因为 Inno Setup 脚本引擎基于它。我希望它能得到支持。我进行了一点测试,功能指针确实有效。[代码]

Inno Setup是否支持函数指针?我在文档中找不到任何内容.我知道Delphi / Pascal支持它们,因为Inno Setup脚本引擎是基于它的,我希望它得到支持. 我只做了一点测试,功能指针确实有效.以下[代码]部分编译并正常工作:

type TStrProc = procedure (const AStr: String); procedure Call(const AProc: TStrProc; const AStr: String); begin AProc(AStr); end; procedure ShowStr(const AStr: String); begin MsgBox(AStr, mbInformation, MB_OK); end; function InitializeSetup(): Boolean; begin Call(@ShowStr, 'Hello World!'); end;

BTW:Inno Setup使用the Pascal Script engine from RemObjects.也许你可以在那里找到更多信息.

标签:函数指

本文共计209个文字,预计阅读时间需要1分钟。

Inno Setup 是否支持函数指针?我在文档中找不到相关内容。我知道 Delphi / Pascal 支持它们,因为 Inno Setup 脚本引擎基于它。我希望它能得到支持。我进行了一点测试,功能指针确实有效。[代码]

Inno Setup是否支持函数指针?我在文档中找不到任何内容.我知道Delphi / Pascal支持它们,因为Inno Setup脚本引擎是基于它的,我希望它得到支持. 我只做了一点测试,功能指针确实有效.以下[代码]部分编译并正常工作:

type TStrProc = procedure (const AStr: String); procedure Call(const AProc: TStrProc; const AStr: String); begin AProc(AStr); end; procedure ShowStr(const AStr: String); begin MsgBox(AStr, mbInformation, MB_OK); end; function InitializeSetup(): Boolean; begin Call(@ShowStr, 'Hello World!'); end;

BTW:Inno Setup使用the Pascal Script engine from RemObjects.也许你可以在那里找到更多信息.

标签:函数指