DLL 实现单元
来源:互联网 发布:ubuntu更新软件的方法 编辑:程序博客网 时间:2024/05/16 01:25
unit uSetConfig;interfaceuses SysUtils, uInterface, Windows, Controls, Forms, FSetForm;type{ TDllTest } TIConfig = class(TInterfacedObject, IConfig) private FNotic:INotic; protected procedure SetNotic(aNotic:INotic); stdcall; function GetUserInfo(var sID,sPwd:WideString):Boolean;stdcall; procedure ShowForm(App:THandle;Notice:INotic);stdcall; public constructor Create; destructor Destroy; override; end; function CreateDll: IConfig; stdcall; //Dll导出函数exports CreateDll; implementationfunction CreateDll: IConfig; stdcall;begin Result := TIConfig.Create;end;{ TIConfig }constructor TIConfig.Create;beginend;destructor TIConfig.Destroy;begin FNotic := nil; inherited;end;function TIConfig.GetUserInfo(var sID, sPwd: WideString): Boolean;begin result := True; try TConfig.GetUserInfo(sID,sPwd); except result := False; end;end;procedure TIConfig.SetNotic(aNotic: INotic);begin FNotic := aNotic;end;procedure TIConfig.ShowForm(App: THandle; Notice: INotic);begin Application.Handle:=app; fmSetForm:=TfmSetForm.create(application); fmSetForm.Notic := Notice; fmSetForm.ShowModal; fmSetForm.Free;end;end.
0 0
- DLL 实现单元
- 单元
- 在DLL工程中引用ShareMem单元问题
- 控制与捕捉输入法的实现单元
- 代码实现UITableViewCell表视图单元定制
- c# WaitN NUnit实现单元自动化测试
- 代码实现UITableViewCell表视图单元定制
- 打开本地安全策略mmc无法创建管理单元regsvr32 gpedit.dll提示失败
- Narrator.dll 的实现
- loadrunner 调用dll实现
- DLL中实现对话框
- QueueUserApc实现DLL注入
- 日志DLL实现
- VC++实现DLL注入
- C++实现DLL注入
- DLL编程实现
- dll实现进程通信
- dll库的实现
- spring jdbc
- JDK+JDBC+MySQL实例及注意事项
- 一句话的经典
- 浅谈java中的集合类
- 格式化命令行参数getopt和getopts的使用
- DLL 实现单元
- 【unix网络编程】4-11显示客户IP地址和端口号的时间获取服务程序
- Codeforces 443A Anton and Letters(水题)
- leetcode:Remove Duplicates from Sorted List
- Android笔记之 Web Service 基础
- qSort implemented in recursion and non-recuision version
- Codeforces 19D Points 线段树+set
- The Problems of zoj By watashi
- (转)logback 配置详解(一)