-
modeling of fault
modeling of fault-tolerant systems, the source
- 2022-02-12 08:51:30下载
- 积分:1
-
嘿嘿,大侠看到不要见笑呀...
大家都知道使用DLL的好处.于是我就想把FORM封装到DLL里面去.
到网上找,发现是MDI和模式窗体的,非模式的也有...
嘿嘿,大侠看到不要见笑呀...
大家都知道使用DLL的好处.于是我就想把FORM封装到DLL里面去.
到网上找,发现是MDI和模式窗体的,非模式的也有很多问题.便想自己解决这个问题.
原来是用DLL创建一个对象返回,但发现有很多的问题.
想了半天就去寻根问柳吧.
找到了类.
我就想把类封装进DLL,到时简单的返回一个类,然后在主程序里操作不就简单了?
找了半天发现了TFormClass,于是试了试从DLL导出来,像一般的程序一样创建窗体发现成功.
接着我又想看看其他的类是不是也能这样,就拿TFrame来实验.
function GetDllFrameClass():TFrame stdcall
第一次是这样声明的,失败.奇怪?!
试了好多次都不行,就想到了TFormClass(Ctrl+左键),进去看看,发现是这样声明的.
TFormClass = class of TForm
哎呀,恍然大悟!!
class(TFrame) 是声明一个类, 这个类继承了TFrame类 f: TFrame 是一个对象
class of TFrame 声明的是类类型, f:TFrameClass 是一个类.
function GetDllFrameClass():TFrame
返回就不是类而是对象了,照TFormClass修改后TFrameClass = class of TFrame
运行...成功,
- 2022-01-31 01:59:09下载
- 积分:1
-
透视源码 CF的!! 非常小的一个文件
透视源码 CF的!! 非常小的一个文件-CF 透视源码!!
- 2023-05-04 00:10:04下载
- 积分:1
-
转发一个用Delphi7编写的网络即时通讯示例
转发一个用Delphi7编写的网络即时通讯示例-Forwarding a network using Delphi7 prepared sample instant messaging
- 2022-02-04 02:55:11下载
- 积分:1
-
A delphi application source code of the canvas, draw on the canvas graphics and...
一个delphi的画布的应用源码,在画布上画图形和写字-A delphi application source code of the canvas, draw on the canvas graphics and write
- 2022-03-29 14:37:03下载
- 积分:1
-
snmp设计增加相应SNMP的OID,是实时处理的.
snmp设计增加相应SNMP的OID,是实时处理的.-snmp designed to increase the corresponding SNMP-OID, is a real-time processing.
- 2023-05-08 11:05:03下载
- 积分:1
-
一个有简单计算器的源代码,希望对新人有帮助
一个有简单计算器的源代码,希望对新人有帮助-A simple calculator source code, want to help newcomers
- 2022-03-07 05:00:33下载
- 积分:1
-
快速处理各种网络
快速处理基于 Web 的各种图象文件.zip-rapid handling of the various Web-based document image. Zip
- 2023-01-26 23:55:04下载
- 积分:1
-
东方使托盘图标在
East make Tray Icon in delphi
- 2022-07-09 14:43:32下载
- 积分:1
-
如何访问一个进程中的内存 如何访问一个进程中的内存 如何访问一个进程中的内存...
如何访问一个进程中的内存 如何访问一个进程中的内存 如何访问一个进程中的内存 -How to access a memory in the process of how to access a memory in the process of how to access a memory in the process of how to access a memory in the process of how to access a memory in the process of
- 2022-01-30 21:26:38下载
- 积分:1