in reply to Re^3: Console Window Minimized
in thread Console Window Minimized

This seems to work except for one catch. When I reboot the computer with the application running Windows kicks an error saying it is unable to end the program. I added the following code to my program but it did not help. When I compile my code with perl2exe using the -gui option, my program exits properly but I get flashing dos windows. Is there a way around this...?
$SIG{INT}=\&ctrlc; $SIG{HUP}=\&ctrlc; $SIG{QUIT}=\&ctrlc; #Quit $SIG{TERM}=\&ctrlc; #Terminate $SIG{PIPE}='IGNORE'; sub ctrlc{exit;}

Replies are listed 'Best First'.
Re^5: Console Window Minimized
by BrowserUk (Patriarch) on Sep 21, 2004 at 01:36 UTC

    Sounds like your trying to run OS commands in the background without anyone knowing your doing it. I wonder why?


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon
      The application that I am building is simply a GUI for dos commands. I used Win32::GUI to build a GUI that allows the customer to enter a DOS command. That command is executed and the results are displayed in a Textfield window. NO, I am not trying to do anything sneaky.