Board index » delphi » Win98 cant be shut down while my app is running

Win98 cant be shut down while my app is running

I have written a small prog that is shown as an icon in the taskbar
like this:

begin
  Application.Initialize;
  Application.CreateForm(TfrmConfig, frmConfig);
  Application.SHowMainForm:=FALSE;
  frmConfig.CreateIcon(Application.Icon,'name');
  ShowWindow(Application.Handle,SW_HIDE);  
  Application.Run;
end.

Now the problem is, that win98 cannot shut down while that application
is running. What can i do? Or has that nothing to do with the code
shown above???

Tobi.

 

Re:Win98 cant be shut down while my app is running


DEAR TOBI,
WE NEAD MORE INFORMATION ABOUT YOUR PROGRAM.
WHAT FOR A PROGRAM IS IT.... DOES IT THINGS IN THE BACKGROUND ?
OR SOMTHING ELSE. PLEASE MORE INFO.

BEST REGARDS,
JOHN KONINGS

j.koni...@delphi.nlonline.net
http://delphi.nlonline.net

Quote
Tobi wrote:
> I have written a small prog that is shown as an icon in the taskbar
> like this:

> begin
>   Application.Initialize;
>   Application.CreateForm(TfrmConfig, frmConfig);
>   Application.SHowMainForm:=FALSE;
>   frmConfig.CreateIcon(Application.Icon,'name');
>   ShowWindow(Application.Handle,SW_HIDE);
>   Application.Run;
> end.

> Now the problem is, that win98 cannot shut down while that application
> is running. What can i do? Or has that nothing to do with the code
> shown above???

> Tobi.

Re:Win98 cant be shut down while my app is running


Is your capslock key broken?

John Konings <j.koni...@delphi.nlonline.net> skrev i en
nyhedsmeddelelse:3797909D.7BEA1...@delphi.nlonline.net...

Quote
> DEAR TOBI,
> WE NEAD MORE INFORMATION ABOUT YOUR PROGRAM.
> WHAT FOR A PROGRAM IS IT.... DOES IT THINGS IN THE BACKGROUND ?
> OR SOMTHING ELSE. PLEASE MORE INFO.

> BEST REGARDS,
> JOHN KONINGS

Re:Win98 cant be shut down while my app is running


Quote
>DEAR TOBI,
>WE NEAD MORE INFORMATION ABOUT YOUR PROGRAM.
>WHAT FOR A PROGRAM IS IT.... DOES IT THINGS IN THE BACKGROUND ?
>OR SOMTHING ELSE. PLEASE MORE INFO.

Thx for replying.

No, the program does nothing in the background. If the icon is
clicked, a PopupMenu is started. This Menu has all filenames as its
items that are located in the desktop folder of windows (the
information where exactly this folder excists on that machine is read
out from the registry). The refering file is exceuted when one clicks
at it. It's just thought as a little helper, for instance if you have
lots of applications on  your desktop running and you don't want to
minimize all of them to execute a program which is located on the
desktop as an icon.

Don't tell me whether such a program already exists. Probably
something like that already exists. It just the fun of coding.

Ciao, Tobi.

Re:Win98 cant be shut down while my app is running


LOL

Matija

Quote
Finn Tolderlund <XnojunkmailXf...@teliamail.dkXnojunkmailX> wrote in message

news:7n872i$oi7$1@news101.telia.com...
Quote
> Is your capslock key broken?

> John Konings <j.koni...@delphi.nlonline.net> skrev i en
> nyhedsmeddelelse:3797909D.7BEA1...@delphi.nlonline.net...
> > DEAR TOBI,
> > WE NEAD MORE INFORMATION ABOUT YOUR PROGRAM.
> > WHAT FOR A PROGRAM IS IT.... DOES IT THINGS IN THE BACKGROUND ?
> > OR SOMTHING ELSE. PLEASE MORE INFO.

> > BEST REGARDS,
> > JOHN KONINGS

Other Threads