Delphi初始化与结束化

 

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation
{$R *.dfm}
 procedure TForm1.FormCreate(Sender: TObject);
begin
  ShowMessage('创建窗体');
  Application.Terminate;
end;

initialization
   ShowMessage('初始化');
  finalization
    ShowMessage('结束化')


end.

posted @ 2013-10-25 14:37  似水@流年  阅读(475)  评论(0编辑  收藏  举报
悠悠记得当天笑 仿佛入迷 又带一点惘 种种喜悦 令人为你鼓掌 眉飞色舞千千样 你是个妙人 是个少年狂