song2,你的每个project不是有一个和project同名的unit?
打开他,然后.....看我的例子把
program Result;
uses
Forms,
Dialogs,
ReaultMain in 'ReaultMain.pas' {ResultForm},
dataModual in 'dataModual.pas' {DM: TDataModule},
login in 'login.pas' {OKBottomDlg},
progress in 'progress.pas' {frmProgress};
{$R *.RES}
begin
Application.Initialize;
Application.CreateForm(TResultForm, ResultForm);
Application.CreateForm(TOKBottomDlg, OKBottomDlg);
Application.CreateForm(TDM, DM);
Application.CreateForm(TfrmProgress, frmProgress);
if OKBottomDlg.showModalParam=1 then
begin
if OKBottomDlg.Group='' then
begin
showmessage('您输入了错误的口令或用户名!');
Application.Terminate;
end
else
begin
.........
end;
end
else
begin
Application.Terminate;
end;
Application.Run;
end.