在dpr里面写代码就可以了,比如
program gold;
uses XXXXXXXXXXXXXXXXXX。。。。。。。。。。。
{$R *.RES}
begin
begin
passform:=Tpassform.create(Application);
passform.ShowModal;
//messageBox(0,pchar(intToStr(passform.ShowModal)),'',MB_OK);
if passform.modalResult=1 then
begin
//passform.Free;
Application.Initialize;
Application.Title := 'my project';
Application.CreateForm(TmainForm, mainForm);//确认以后才显示主form
end;