-
delphi 画适量图 源代码
delphi 画适量图 源代码-delphi source code for drawing an appropriate diagram
- 2023-01-10 03:00:05下载
- 积分: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
-
Delphi was a small desktop calendar Yes!
Delphi写的小型桌面日历不错的!-Delphi was a small desktop calendar Yes!
- 2022-06-17 01:08:29下载
- 积分:1
-
设计的微控制字体的字符位图的应用设计
application for design character bitmap useful for designing fonts in micro controllers or LCD.
Source code in delphi7
- 2022-04-23 00:27:24下载
- 积分:1
-
一款简简单单的绘图软件 简单的不能再简单了 供那些初学者用来看一看 长长见识用吧...
一款简简单单的绘图软件 简单的不能再简单了 供那些初学者用来看一看 长长见识用吧-one simple mapping software simply can no longer simple for beginners to those who look at it with a long exposure
- 2022-07-16 09:57:19下载
- 积分:1
-
Gobang source, very classic game, it can be considered a friend DELPHI beginner...
五子棋源码,非常经典的游戏,也算是初学DELPHI的朋友必须了解的东西,可以加强逻辑思维,提高编程的严密性-Gobang source, very classic game, it can be considered a friend DELPHI beginner needs to know things, can enhance critical thinking, improve the tightness of Programming
- 2023-05-17 09:50:04下载
- 积分:1
-
一个只能处理数字的TEdit组件
一个只能处理数字的TEdit组件-can only handle a number of components TEdit
- 2022-02-25 21:37:31下载
- 积分:1
-
This my another project in AdHoc network. By using Delphi to program the operati...
This my another project in AdHoc network. By using Delphi to program the operation of the OLSR algorithm.It include the source code in Delphi and the execute file to run.-This is my another project in AdHoc network. By using Delphi to program the operation of the OLSR algorithm.It include the source code in Delphi and the execute file to run.
- 2022-08-11 11:17:02下载
- 积分:1
-
该写字板实现了基本的文字录入,字体,颜色,大小,加粗,倾斜,和文字的剪切,复制,粘贴等功能...
该写字板实现了基本的文字录入,字体,颜色,大小,加粗,倾斜,和文字的剪切,复制,粘贴等功能-The tablet to achieve the basic text input, font, color, size, bold, italic, and text cut, copy, paste and other functions
- 2022-02-06 11:07:47下载
- 积分:1
-
在应用程序开发时,往往需要快速获取客户的网卡号。一运行该应用程序,就可将本机的网卡号显示在程序界面上,并在当前目录下生成文件名为网卡号的文件。
在应用程序开发时,往往需要快速获取客户的网卡号。一运行该应用程序,就可将本机的网卡号显示在程序界面上,并在当前目录下生成文件名为网卡号的文件。-In application development, they often need quick access to customer
- 2022-08-08 00:50:14下载
- 积分:1