既存クラスの利用
3-5 :生成時の宣言
新規にオブジェクトを作成した際には、ここにエラーが発生するので注意が必要です。
program project.dpr;
{$R *.RES}
uses
Forms,
Windows,
MainUnit in 'MainUnit.pas' {Cat},
Unit2 in 'Unit2.pas' {CatWork},
Unit3 in 'Unit3.pas' {WhiteCatWork};
begin
Application.Initialize;
Application.CreateForm(TCat, Cat);
Application.CreateForm(TCatWork, CatWork1);
Application.CreateForm(TCatWork, CatWork2);
Application.CreateForm(TCatWork, CatWork3);
Application.CreateForm(TWhiteCatWork, WhiteCatWork);
Application.Run;
end.