This kind of scenario seems to work OK. Delphi seems not to mind such
changes to a project file.

One related question.

Before creating a main form as below , I also create some others in the code
(splash screen,progress etc).
I wonder if there are any hidden dangers in doing this. In fact I make
program to work for a while without any main form at all. Is it OK ?

Alex

---- Original Message -----
From: "Mark Derricutt" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Tuesday, 13 June 2000 11:36
Subject: Re: [DUG]: Changing main form at run-time


> On Tue, 13 Jun 2000, Alex Kouznetsov wrote:
>
> > P.S. Does this actually mean there is _no_ way to change main form at
run
>
> Its not quite what you wanted.... but could you not do something like this
> in the .dpr (psudo code):
>
> {$R *.RES}
>
> begin
>   Application.Title := 'My Apps';
>   Application.CreateForm(TDataModule1, DataModule1);
>   if ParamStr(1) = 'app1' then
>     Application.CreateForm(TformApp1Main, formApp1Main);
>   if ParamStr(1) = 'app2' then
>     Application.CreateForm(TformApp2Main, formApp2Main);
>   Application.Run;
> end.
>
> And have two or three icons on the desktop with different parameters...
>
> I don't know if modifying the .dpr here would cuase any problems with
> Delphi, but its a possible solution.
>
>
>
>
> --
> I am naked, hear me purr.
> Now Playing: <no audio cd present>
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to