Re: Prevent console window

2010-01-12 Thread Angelos Karageorgiou
On 12/1/2010 4:10 μμ, Nele Kosog wrote: > Hi, > > I have compiled an executable using the following command: > "pp -x --gui -o my_program.exe my_program.pl" > > While --gui blocks the console window for the main application, it does > not seem to prevent other console windows from opening. > >

Re: Prevent console window

2010-01-12 Thread bob davis
Do you use 'system' to start the command line? How about something like this instead Win32::Process::Create($ProcessObj, $ExeName, $Args, 0, NORMAL_PRIORITY_CLASS,

RE: Prevent console window

2010-01-12 Thread Nele Kosog
> Do you use 'system' to start the command line? No, I use back ticks my $result = `command`; > How about something like this instead > Win32::Process::Create($ProcessObj, >$ExeName, >$Args, >0,

Re: Prevent console window

2010-01-12 Thread bob davis
Nele Kosog wrote: Hi, I have compiled an executable using the following command: "pp -x --gui -o my_program.exe my_program.pl" While --gui blocks the console window for the main application, it does not seem to prevent other console windows from opening. my_program.pl uses two command line t

Re: Prevent console window

2010-01-12 Thread Angelos Karageorgiou
On 12/1/2010 5:04 μμ, Ben Morrow wrote: From activeperl's faq, other variants use some other technique maybe ? BEGIN { my ($DOS) = Win32::GUI::GetPerlWindow(); #hide console window if ( $DOS ) { Win32::GUI::Hide($DOS) unless ($ARGV[0] eq '--keep'); } This part is unnecessa

Re: Prevent console window

2010-01-12 Thread Ben Morrow
Quoth ange...@unix.gr (Angelos Karageorgiou): > On 12/1/2010 4:10 μμ, Nele Kosog wrote: > > > > I have compiled an executable using the following command: > > "pp -x --gui -o my_program.exe my_program.pl" > > > > While --gui blocks the console window for the main application, it does > > not see

RE: Prevent console window

2010-01-13 Thread Nele Kosog
Bob, where does the "$ProcessObj" come from? The documentation on CPAN doesn't explain it and I don't know what object is expected. Thank you! Regards, Nele > Do you use 'system' to start the command line? > How about something like this instead > Win32::Process::Create($ProcessObj, >

Re: Prevent console window

2010-01-13 Thread bob davis
It gets set in this call so you can use it for things like this: $ProcessObj->Suspend(); $ProcessObj->Resume(); $ProcessObj->Wait(INFINITE); Nele Kosog wrote: Bob, where does the "$ProcessObj" come from? The documentation on CPAN doesn't explain it and I don't know what object is expected.

RE: Prevent console window

2010-01-14 Thread Nele Kosog
. Januar 2010 16:05 To: Nele Kosog Cc: par@perl.org Subject: Re: Prevent console window It gets set in this call so you can use it for things like this: $ProcessObj->Suspend(); $ProcessObj->Resume(); $ProcessObj->Wait(INFINITE); Nele Kosog wrote: > Bob, > > where does the "

Re: Prevent console window

2010-01-14 Thread bob davis
I can see it on STDOUT. Thanks for your help! Nele -Original Message- From: bob davis [mailto:robert.da...@infor.com] Sent: Mittwoch, 13. Januar 2010 16:05 To: Nele Kosog Cc: par@perl.org Subject: Re: Prevent console window It gets set in this call so you can use it for things like this: