P
PRSoftware
Hello,
I use perl2exe with the "-gui" option to create an "executable" (= a
single distribution file) without the DOS window.
But when my script has a problem, I can't have any report of the
problem.
I tried to use Win32::Console to open a new console to display the
problems but it doesn't work : the console window opens but the
standard output and input are not managed in this new console.
I tried a very simple program (myprog.pl) to check Win32::Console with
perl2exe :
use Win32::Console;
$CONSOLE = new Win32::Console;
$CONSOLE->Alloc;
print "hello\n";
<STDIN>;
sleep 10;
When I generate the .exe with "perl2exe myprog.pl" (without the -gui
option) all works fine : a console window opens, the text is displayed
and I have to press the Enter key to close the window.
But when I generate with "perl2exe -gui myprog.pl", the console window
appears but nothing is displayed and the standard input is not read
(the console is automatically closed after the 10 seconds sleep
delay).
I use :
- Win32::Console 0.031
- Perl 5.5.2 build 509
- Perl2Exe 5.03b
- Windows 98 SE.
Thanks for your help
PR
I use perl2exe with the "-gui" option to create an "executable" (= a
single distribution file) without the DOS window.
But when my script has a problem, I can't have any report of the
problem.
I tried to use Win32::Console to open a new console to display the
problems but it doesn't work : the console window opens but the
standard output and input are not managed in this new console.
I tried a very simple program (myprog.pl) to check Win32::Console with
perl2exe :
use Win32::Console;
$CONSOLE = new Win32::Console;
$CONSOLE->Alloc;
print "hello\n";
<STDIN>;
sleep 10;
When I generate the .exe with "perl2exe myprog.pl" (without the -gui
option) all works fine : a console window opens, the text is displayed
and I have to press the Enter key to close the window.
But when I generate with "perl2exe -gui myprog.pl", the console window
appears but nothing is displayed and the standard input is not read
(the console is automatically closed after the 10 seconds sleep
delay).
I use :
- Win32::Console 0.031
- Perl 5.5.2 build 509
- Perl2Exe 5.03b
- Windows 98 SE.
Thanks for your help
PR