-
Delphi Naro API WriteCD/DVD
Delphi Naro API WriteCD/DVD
- 2022-03-29 23:07:28下载
- 积分: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
-
jssm的delphi的源代码,石器时代的工具,研究人务动作的人可以...
jssm的delphi的源代码,石器时代的工具,研究人务动作的人可以-jssm the source code of delphi, Stone Age tools to study the movements of people are strongly advised to take a look at
- 2022-08-25 07:38:07下载
- 积分:1
-
图书管理系统,小型图书管理系统!数据库包含…
图书管理系统,小的图书管理系统!内含对数据库的简单操作。-Library management system, small library management system! The database contains a simple operation.
- 2022-03-24 04:49:25下载
- 积分:1
-
local area network (LAN) to relay messages to the members.
局域网(LAN) 传送讯息的构件。-local area network (LAN) to relay messages to the members.
- 2022-07-02 01:35:17下载
- 积分: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
-
商店管理系统。Delphi7和sql的。有点错误。希望大家指出。
商店管理系统。Delphi7和sql的。有点错误。希望大家指出。-Stores management system. Delphi7 and sql" s. A bit error. Wish to point out.
- 2022-12-20 05:25:04下载
- 积分:1
-
是利用 Windows 95/NT IPC (Interprocess communications) 中 MailSlot API,在局域网 ( LAN )...
是利用 Windows 95/NT IPC (Interprocess communications) 中 MailSlot API,在局域网 ( LAN ) 制作类似 WinPopup 程序,传送讯息的构件 ( 1.14 版,附源码 )-Are using Windows 95/NT IPC (Interprocess communications) Medium MailSlot API, in the local area network (LAN) produced similar WinPopup procedures, send the message components (1.14 version, with source code)
- 2022-05-18 23:04:53下载
- 积分:1
-
dephi中各种控件的源代码和各种操作技巧,以及类的开发和应用...
dephi中各种控件的源代码和各种操作技巧,以及类的开发和应用-dephi the source code for various controls and a variety of operating skills, as well as the development and application of class
- 2022-02-02 03:55:35下载
- 积分:1
-
Serial Port Sniffer ActiveX Control 生成虚拟串口的控件
Serial Port Sniffer ActiveX Control 生成虚拟串口的控件-Serial Port Sniffer ActiveX Control to generate a virtual serial port control
- 2023-03-15 04:10:04下载
- 积分:1