这里讲讲如何调用dll中的函数。先来一个简单的例子:
[code]
var
myPage:TWizardPage;
Button :TNewButton;
Cnt:Integer;
function GetCurrentProcessId(): Integer;
external 'GetCurrentProcessId@C:\Windows\System32\kernel32.dll';
procedure ButtonOnClick(Sender: TObject);
begin
MsgBox(IntToStr(GetCurrentProcessId()), mbInformation, mb_Ok);
end;
procedure InitializeWizard();
begin
myPage:=CreateCustomPage(wpWelcome, '标题:自定义页面', '描述:这是我的自定义页面');
Button := TNewButton.Create(mypage);
Button.Width := ScaleX(75);
Button.Height := ScaleY(23);
Button.Caption := 'TNewButton';
Button.OnClick := @ButtonOnClick;
Button.Parent := mypage.Surface;
end;
运行效果如下:
运行效果如下:
语句:
function GetCurrentProcessId(): Integer;
function GetCurrentProcessId(): Integer;
external 'GetCurrentProcessId@C:\Windows\System32\kernel32.dll';
申明了引用dll的文件、函数和定义的函数。下次再说说调用的一些细节。
相关推荐
很好的安装程序打包软件innoSetup的入门教程。
解压压缩包中的 Inno Setup 5.5.zip,运行Inno Setup 5.5\Inno Setup 5\Compil32.exe,右上角可以改变语言。 打开build.iss文件,一些自定义字段请按需修改,点击Inno Setup工具栏中的 ‘绿色小三角’ 来运行脚本,...
Inno Setup是一个为Microsoft Windows应用程序创建安装程序的工具。innoextract允许在非Windows系统下提取此类安装程序,而无需使用wine运行实际的安装程序。innoextract 目前支持由 Inno Setup 1.2.10 到 6.2.1 ...
1. inno setup 各种格式修改 2. 使用pascal脚本 3. inno setup 类 4. 在inno中dll的使用
超详细系统讲解Inno安装包制作的全过程
使用inno setup将python exe制作安装包详细教程(csdn)————程序
InnoSetup自定义安装界面 非botva2,仅使用isskin.dll 仅支持 InnoSetup 5.x restool增强版的编译器使用
可解加密的inno setup安装程序,可解加密的inno setup安装程序
Inno Setup支持以下函数和过程。 function InitializeSetup(): Boolean; 该函数在安装程序初始化时调用,返回False 将中断安装,True则继续安装,测试代码如下: function InitializeSetup(): Boolean; begin ...
该资源是inno setup 脚本实现 psvince 检查进程,有需要的朋友可以下载看看,可用,附带psvince .dll
Inno Setup使用教程 Inno Setup使用教程 Inno Setup使用教程
Inno Setup 是一款免费的安装包制作软件,操作简单、功能稳定,能够快速制作出标准Windows风格的安装界面,足以完成一般安装任务。使用Inno Setup打包可执行的exe软件,可在任何电脑中运行。
Inno setup是一款简便安装包工具,支持pascal脚本,几分钟就能生成标准Windows安装包。资源包括加密dll以及中文语言包
inno setup 入门学习的官方demo+网上案例+自己的案例
Inno Setup 打包软件中文教程
InnoSetup 多安装目录
inno setup 中文语言包,放在安装文件夹的languages文件夹下。 [Languages] Name: "chinese"; MessagesFile: "compiler:Languages\Chinese.isl
自己替换app目录下的...注意:必须要用inno setup增强版封装,该资源包包含对.net FormWork 4 的封装。{code} 文件夹下的 Code.iss 是界面代码,version.h 是配置文件 可以在里面修改应用名称,公司 、版本号等信息。
InnoSetup 获取本机IP地址的方法
Inno Setup 及 My Inno Setup Extensions 安装程序生成工具使用教程