home *** CD-ROM | disk | FTP | other *** search
- program Ccsaver;
-
- uses
- Forms,
- SysUtils,
- Ccscreen in 'CCSCREEN.PAS' {CCScreenSaverForm},
- Ccsavrsu in 'CCSAVRSU.PAS' {SetupDialog},
- Ccerrors in 'CCERRORS.PAS' {BtnBottomDlg};
-
- {$R *.RES}
- {$D SCRNSAVE CIUPKC Screen Saver}
-
- begin
- { Windows requires only one instance to be allowed at a time }
- if hPrevInst = 0 then begin
- if ( ParamCount > 0) and ( UpperCase( ParamStr( 1 )) = '/S') then
- begin
- { Set CCScreenSaverForm to the Main Form }
- Application.CreateForm( TCCScreenSaverForm , CCScreenSaverForm );
- Application.CreateForm( TSetupDialog , SetupDialog);
- end
- else
- begin { note that this works if program invoked without params! }
- { Set SetupDialog to the Main Form }
- Application.CreateForm( TSetupDialog , SetupDialog );
- Application.CreateForm( TCCScreenSaverForm , CCScreenSaverForm );
- end;
- Application.Run;
- end;
- end.
-