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-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 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 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
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 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. > >

Prevent console window

2010-01-12 Thread Nele Kosog
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 tools to calculate so

RE: Module Digest.pm causes error

2010-01-12 Thread Nele Kosog
Roderich, I did it again. Yes, it is an obvious, stupid, major mistake: I forgot to update the appropriate module which is in the @INC. When I added "use Digest::SHA;" and recompiled the executable (pp -x --gui -o my_program.exe my_program.pl), it all worked well. Thank you so much for your ef

RE: Module Digest.pm causes error

2010-01-12 Thread Nele Kosog
Thanks for your detailed reply! With use Digest::SHA; I can at least compile my program into an executable: pp -x --gui -o my_program.exe my_program.pl The executable doesn't run though. The process appears in the Task Managers list of processes and then just dies and disappears. No messages,

Re: Module Digest.pm causes error

2010-01-12 Thread Roderich Schupp
On Tue, Jan 12, 2010 at 9:37 AM, Nele Kosog wrote: > Since the Digest method is passed as string, I think Data::Serializer uses > "SHA-256" (that's the default and I don't pass a different parameter to > Data::Serializer). > ... > No, it doesn't work with -M Digest::SHA. Referring to the side n

RE: Module Digest.pm causes error

2010-01-12 Thread Nele Kosog
The constructor of Data::Serializer takes a "digester" string which is later passed on to Digest: Digest->new($digester); (line 668) I can't find any "use" or "require" statements but I think (correct me if I am wrong) Data::Serializer uses this line to load modules: eval { require $package };