-
嘿嘿,大侠看到不要见笑呀...
大家都知道使用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
-
本文件中还有JSP、php和delphi等源程序,各位只需要下载以后,根据自己的编程环境进行少量的更改就可以运行了。...
本文件中还有JSP、php和delphi等源程序,各位只需要下载以后,根据自己的编程环境进行少量的更改就可以运行了。-In this document have JSP, php and delphi source, etc., you only need to download later, according to its own programming environment can change a small amount of running.
- 2023-08-13 04:05:06下载
- 积分:1
-
comparer
比较器,能够实现基本的比较器功能,大学里面课程实验中使用-comparer
- 2022-03-11 07:10:30下载
- 积分:1
-
DELPHI的报表控件,适合中国人习惯的报表。
DELPHI的报表控件,适合中国人习惯的报表。-DELPHI statements controls suited to the Chinese habit of statements.
- 2022-11-13 16:25:03下载
- 积分:1
-
fast net vcl delphi 4
fast net vcl delphi 4
- 2022-01-30 21:40:45下载
- 积分:1
-
jssm的原代码,用delphi做的,喜欢石器时代的朋友可以研究一下...
jssm的原代码,用delphi做的,喜欢石器时代的朋友可以研究一下-jssm the original code, using delphi to do, like the Stone Age friends can look at
- 2022-01-26 02:38:41下载
- 积分:1
-
very simple one voting machine source code, which deals with Namco for a vote.
很简单的一个投票机原代码,主要针对星际争霸进行投票。
-very simple one voting machine source code, which deals with Namco for a vote.
- 2022-10-22 17:25:03下载
- 积分:1
-
Volume Control 如何实现静音与声道控制
Volume Control 如何实现静音与声道控制-Volume Control how to mute and solo controls
- 2023-05-02 11:25:03下载
- 积分:1
-
Memory management procedures, functions and FASTMM similar, PLEASE NOTE: There a...
内存管理程序,功能与FASTMM相似,PLEASE NOTE: There are two ways to install BigBrain. You may use the
memory manager code natively compiled into your EXE or you can use
an included external DLL which will allow you to share memory across
multiple DLLs with one central place for memory management. Using the DLL
allows your application to share strings, and serves the same purpose
as the ShareMem unit included with Delphi. BigBrainShareMem.dll should
be 100% compatible with the DelphiMM.dll and could even simply be renamed
to DelphiMM.dll to simplify deployment.-Memory management procedures, functions and FASTMM similar, PLEASE NOTE: There are two ways to install BigBrain. You may use the memory manager code natively compiled into your EXE or you can use an included external DLL which will allow you to share memory acrossmultiple DLLs with one central place for memory management. Using the DLLallows your application to share strings, and serves the same purposeas the ShareMem unit inc
- 2022-10-25 22:25:02下载
- 积分:1
-
利用Delphi编写的几个对话框程序,主要是体会函数的使用所带来的方便。...
利用Delphi编写的几个对话框程序,主要是体会函数的使用所带来的方便。-use Delphi several dialog procedures, the main function is to understand the use of the convenience.
- 2022-08-07 16:19:55下载
- 积分:1