-
气球
Balloon - using Balloon-shaped windows in your Delphi programs
-Balloon- using Balloon-shaped windows in your Delphi programs
- 2022-07-12 00:56:44下载
- 积分: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
-
delpi的函数查询工具DELPHI相关源码下载,作品发布,个性论坛
delpi的函数查询工具DELPHI相关源码下载,作品发布,个性论坛
-delpi a function of query tools DELPHI related source download, works published, personalized forum
- 2022-04-10 10:44:58下载
- 积分:1
-
teach you how to ping operation. Provided a detailed code, we can mosaic of proc...
教你如何实现ping操作。提供了详细的代码,大家可以镶嵌到程序中-teach you how to ping operation. Provided a detailed code, we can mosaic of procedures
- 2022-08-25 03:27:49下载
- 积分:1
-
Delphi_demo.zip
Delphi 7应用编程150例附书源码。这本书中有很多实用的源码。-Delphi_demo.zip
- 2022-03-02 15:35:05下载
- 积分:1
-
网络聊天系统和项目文件
delphi lan chat system and project files
- 2022-04-01 10:59:22下载
- 积分:1
-
delphi 完全原代码,可以在d7 and windows xp下编译通过
delphi 完全原代码,可以在d7 and windows xp下编译通过-delphi full source code, you can under the d7 and windows xp the compiler through
- 2022-09-03 04:45:03下载
- 积分:1
-
rawprint Delphi组件,直接打印从您的Delphi应用程序
RawPrint Delphi Component, for direct print from your delphi application-RawPrint Delphi Component, for direct print from your delphi application
- 2022-02-12 22:36:23下载
- 积分:1
-
基于delphi的数据库开发实例代码源程序
基于delphi的数据库开发实例代码源程序-Based on an instance of database development delphi source code
- 2022-05-25 07:31:29下载
- 积分:1
-
ImageEn是Delphi中用来实现绘图的工代码,如图像显示、图像的操作处理等...
ImageEn是Delphi中用来实现绘图的工代码,如图像显示、图像的操作处理等-ImageEn is the code for drawing ,as, show Image ,operate Image etc.
- 2022-02-01 15:56:53下载
- 积分:1