开发者

How to use TList in INNO

I'm currently creating an installer using INNO and I'm no pascal expert. Is there any way to use a TList object from within Inno, all I get is an "Unknown Type" error开发者_开发技巧 on compile.


TList is not on the list of support classes. You can use an array or a TStringList instead.

If you really must have TList, then I suppose you could download the Inno Setup source code and amend it so it also registers TList with the scripting engine.


Chris,

You could write a DLL in Delphi and then call it from the Inno script. (Search INNO help for "DLL". There are also examples of how to do this in the Examples subdirectory of your Inno Setup directory. See the CodeDll.iss" file.)

Or, could use Inno's ability to run other programs to run a Delphi program that uses TList. This can be done in Inno's [Run] section or using Inno's ShellExec function in your Inno Pascal code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜