如何在*.dll文件中增加有个form1,在需要时显示这个表单?, form1.showmodal;? 如何在*.dll文件中增加有个form1,在需要时显示这个表单?, form1.showmodal;? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在dll里面新增form即可,和编写一般的应用程序工程一样。但是需要dll暴露接口出来。供外面的程序调用即可。 用向导生成一个library Testuses System,SysUtils,Classes................; Unit1 'Unit1 .pas' {Form1};{$R *.res}exports CallFormModule;beginend;然后new一个form,在此form中建一个函数 procedure CallFormModule(piFlag:Integer);begin Application.CreateForm(Tform1,form1); try Form1.showmodal; finally Form1.free; end; end; 《Delphi 5开发人员指南》第9章 动态链接库 2349.4.2 显示DLL中的模式窗体 2399.5 显示DLL中的无模式窗体 241 急!! 100分!!Value assigned to 'Date2' never used; Value assigned to 'Date1' never used; 如何安装第三方控件 怎样去掉窗体右上角的最小化、复原按钮,只留下关闭按钮 求Delphi5.0安装文件 问一个有关字段和字段编辑器的问题 如何实现outlook风格的界面设计?? 哪里有Delphi5下载? 一个数据库的问题 Delphi里如何在一个对象里如何强制调用外部域里的函数? 用QRRichtext在自动换行后,为什么会出现一行空格,怎么去掉这行空格 没有界面的程序如何做呀? idhttp控件如何使用?
但是需要dll暴露接口出来。供外面的程序调用即可。
library Testuses
System,SysUtils,Classes................;
Unit1 'Unit1 .pas' {Form1};{$R *.res}
exports
CallFormModule;
begin
end;然后new一个form,在此form中建一个函数
procedure CallFormModule(piFlag:Integer);
begin
Application.CreateForm(Tform1,form1);
try
Form1.showmodal;
finally
Form1.free;
end;
end;
第9章 动态链接库 234
9.4.2 显示DLL中的模式窗体 239
9.5 显示DLL中的无模式窗体 241