任
任远
Unregistered / Unconfirmed
GUEST, unregistred user!
最近在对以前的一个程序进行大小压缩,因原来是带form的程序,现在已经将form中所有的组件都去掉了,所以想去掉form,将所有代码放到一个单一的DPR文件中,原来form中的过程和函数定义TForm1 = class(TForm)应该改成什么?或者如何定义函数?
===========================================
program MyPPP;
uses
Windows, Messages, Graphics, Forms, SysUtils, Dialogs, shellapi, ExtCtrls, Menus, StrUtils;
type
TForm1 = class(TForm) //此处该如何写?
procedure SetChangeTime;
procedure GetbmpList;
private
{ Private declarations }
public
{ Public declarations }
end;
{$R *.res}
var
bmpFileList: TstringList;
procedure SetChangeTime;
begin
{......}
end;
begin
{......}
end.
===========================================
program MyPPP;
uses
Windows, Messages, Graphics, Forms, SysUtils, Dialogs, shellapi, ExtCtrls, Menus, StrUtils;
type
TForm1 = class(TForm) //此处该如何写?
procedure SetChangeTime;
procedure GetbmpList;
private
{ Private declarations }
public
{ Public declarations }
end;
{$R *.res}
var
bmpFileList: TstringList;
procedure SetChangeTime;
begin
{......}
end;
begin
{......}
end.