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.
>
>
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,
> 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,
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
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
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
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,
>
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.
. 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 "
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:
10 matches
Mail list logo