加在.dpr文件中。举个例子:
program Simulator;
uses
Forms, Windows,
MainUnit in 'MainUnit.pas' {MainForm},
ConfigUnit in 'ConfigUnit.pas' {ConfigForm},
TankCtrlUnit in 'TankCtrlUnit.pas' {TankCtrlForm},
VoiceCfgUnit in 'VoiceCfgUnit.pas' {VoiceCfgForm},
AboutUnit in 'AboutUnit.pas' {AboutForm},
SplashUnit in 'SplashUnit.pas' {SplashForm};
{$R *.RES}
var SplashForm:TSplashForm;
begin
SplashForm:=TSplashForm.Create(Application);
SplashForm.Show;
SplashForm.Update;
sleep(600);
Application.Initialize;
Application.CreateForm(TMainForm, MainForm);
Application.CreateForm(TConfigForm, ConfigForm);
Application.CreateForm(TTankCtrlForm, TankCtrlForm);
Application.CreateForm(TVoiceCfgForm, VoiceCfgForm);
Application.CreateForm(TAboutForm, AboutForm);
SplashForm.close;
SplashForm.free;
Application.Run;
end.