-
嘿嘿,大侠看到不要见笑呀...
大家都知道使用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
-
delphi process unit to convert and get handle,pid,write process,read,
delphi process unit to convert and get handle,pid,write process,read,-delphi process unit to convert and get handle,pid,write process,read,...
- 2022-08-08 16:47:07下载
- 积分:1
-
一个delphi制作的mp3播放器!
一个delphi制作的mp3播放器!-Delphi produced a mp3 player!
- 2022-11-30 07:25:04下载
- 积分:1
-
Delphi第三
delphi第三方控件皮肤控件.内有33种皮肤类型-delphi third-party control skin control. There are 33 kinds of skin types
- 2022-03-25 00:46:50下载
- 积分:1
-
实现UP、DOWN原语
产生3个进程:
两个进程模拟需要进入临界区的用户进程。
当需要进入临界区时,显示:“进程x请求进入临界区…”,同时向管理进程...
实现UP、DOWN原语
产生3个进程:
两个进程模拟需要进入临界区的用户进程。
当需要进入临界区时,显示:“进程x请求进入临界区…”,同时向管理进程提出申请;
申请返回,表示进入了临界区。在临界区中等待一段随机时间,并显示:“进程x正在临界区…”;
当时间结束,显示:“进程x退出临界区…”,同时向管理进程提出退出申请;
当申请返回,显示:“进程x已退出临界区。”
一个进程作为原语的管理进程,接受其他进程的临界区进入请求:
如果允许进入,则根据DOWN 原语的操作步骤设置相应变量,然后返回;
如果不允许进入,则进入循环等待,直到允许为止;
退出时模拟UP 操作。
进程间通信可以采用信号、消息传递、管道或网络通信方式。
-achieve UP, DOWN original language have three processes : process simulation of two critical needs for access to the users in the process. When the need to access critical areas, revealed : "The process of x request to enter the critical areas ...", and also to the management process applications; applied to return, entered a critical area. In the critical area to wait for a certain period of time random, and that : "the process of x is the critical area ..."; When the time ended, showed : "x withdraw from the process of critical areas ...", and also to withdraw from the process management applications; When applied to ret
- 2023-08-26 18:05:03下载
- 积分:1
-
在桌面时钟程序中编写了接口。他是原料药的典型例子…
是用API 编写的一个桌面时钟程序。堪称是经典的 API 编程之范例大作!
提供全部源代码!供大家共同进步!-API is prepared in a desktop clock procedures. His is the classic example of API Programming Between big! Full source code! For all the common progress!
- 2022-11-20 06:50:04下载
- 积分:1
-
学生的姓,和名,学号,成绩(GPA),的查看。可以设定成绩的高低来筛选...
学生的姓,和名,学号,成绩(GPA),的查看。可以设定成绩的高低来筛选-students surname, and who, learning, accomplishment (GPA), the View. You can set the level of achievement for selection
- 2022-03-19 08:31:09下载
- 积分:1
-
BOOK name 趣味程序导学Delphi Delphi控件源码
BOOK name 趣味程序导学Delphi Delphi控件源码
-BOOK name interesting procedures guiding Delphi Delphi source code control
- 2022-05-14 10:26:58下载
- 积分:1
-
描述:支持D3
说明:
支持D3-D7
TBARCODE 条码控件, 可以将生成的条码放到画布上。
支持角度旋转。
本人 QQ: 27541407,欢迎交流。
支持下列条码格式:
Code_2_5_interleaved
Code_2_5_industrial
Code_2_5_matrix
Code39
Code39Extended
Code128A
Code128B
Code128C
Code93
Code93Extended
CodeMSI
CodePostNet
CodeCodabar
CodeEAN8
CodeEAN13
CodeUPC_A
CodeUPC_E0
CodeUPC_E1
CodeUPC_Supp2
CodeUPC_Supp5
CodeEAN128A
CodeEAN128B
CodeEAN128C-Description: support for D3-D7TBARCODE bar control, bar code can be generated on the canvas. Support point of rotation. I QQ: 27541407, welcomed the exchange. Supports the following barcode formats: Code_2_5_interleavedCode_2_5_industrialCode_2_5_matrixCode39Code39ExtendedCode128ACode128BCode128CCode93Code93ExtendedCodeMSICodePostNetCodeCodabarCodeEAN8CodeEAN13CodeUPC_ACodeUPC_E0CodeUPC_E1CodeUPC_Supp2CodeUPC_Supp5CodeEAN128ACodeEAN128BCodeEAN128C
- 2022-10-05 13:15:03下载
- 积分:1
-
一套DELPHI北京公交车查询系统源码
一套DELPHI北京公交车查询系统源码-a Beijing bus Inquiry System source
- 2022-06-15 04:35:27下载
- 积分:1