1.自定义函数
a) 函数声明
prototype string GetString();
 
b) 函数定义
function string GetString ()
    string tmpString;
begin
    tmpString="测试字符串!";
    return tmpString;
end;
 
2.使用外部dll导出的函数
a) 声明函数(注意,严格区分大小写)
prototype stdcall BOOL MyDll.Function1(byref string);
 
b) 将dll加载到内存
UseDLL("绝对路径\\MyDll.dll");
 
c) 调用函数
bReturn=MyDll.Function1(tmpString);
 
d) 卸载dll
UnUseDLL ("绝对路径\\MyDll.dll");
 

本文链接地址: 在InstallShield中使用自定义函数和外部DLL中的函数
https://blog.qingfengju.com/index.asp?id=162

上一篇: 希腊字母(常用数学符号)读音表
下一篇: 跟着唱C调的do,re,me,fa,so,la,xi的小软件

分类:脚本编程 查看次数:10939 发布时间:2009/10/14 15:39:13