I just did a little test and function pointers really work. The following section [Code]compiles and works fine:
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 uses the Pascal Script engine from RemObjects . Perhaps you can find more information there.
source
share