From: Nick J. <sk...@er...> - 2003-06-12 21:47:45
|
Bastian Hoyer wrote: >Hi, > >I'm using the activeperl distribution with winxp and just tried the small >example from the website and noticed that if I start the script from the >explorer it opens a command box for the perl script and then it opens the >tutorial wx dialog. Is it possible to suppress the perl.exe window ? > >Bastian > First of all, don't use something like "newbie question" as your subject, it's not very helpful. You don't have to apologise for being a newbie. Just use the subject to describe your problem, e.g. "Suppress DOS box when running wxPerl program". Secondly, I think this probably has probably come up on the list before, and is in a FAQ somewhere. But to answer your question, there are a number of ways to resolve this problem. I think you can create a mini Perl script that runs your proper program using Win32::CreateProcess (perldoc can help you out). ActivePerl contains a non-console Perl executable called 'wperl.exe' (probably in the perl/bin directory) which will not bring up a console window, so you could maybe associate .plw files with wperl.exe, just as a suggestion. Not sure whether STDIN, STDOUT and STDERR would be visible with the non-console version, but that may not be a problem for you. Good luck with wxPerl. - Nick |