The only downside to this method is that an errant Perl Window can linger
around long after you think it's been closed (i.e. it won't show anywhere
expect under Task Manager).

I prefer making a copy of perl.exe (in C:\Perl\bin) and call it something
like perlw.exe. Then register perlw.exe as a Windows app, instead of a DOS
app.

My Windows perl scripts get an extention of .plw which gets associated with
perlw.exe

Russell J Foster
Subject, Wills, & Company
e. [EMAIL PROTECTED]
v. 630-572-0240
 


> -----Original Message-----
> From: Morbus Iff [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, February 01, 2002 11:01 AM
> To: Agustin Rivera; [EMAIL PROTECTED]
> Subject: Re: Win32::GUI - Getting rid of console Window?
> 
> 
>  >Is there anyway to get a Win3::GUI app to not display the 
> DOS console when  >running, so it runs just like any other GUI app?
> 
> Yuppers.
> 
>     use Win32::GUI;
> 
>     # hwnd is a handle to a window - basically, window's
>     # way of keeping track of it's program windows...
>     $hwnd = GUI::GetPerlWindow();
> 
>     # comment this to see error messages in a dos window
>     # otherwise, this will hide the blasted thing...
>     GUI::Hide($hwnd);
> 
> 
> --
> Morbus Iff ( softcore vulcan pr0n rulezzzzz ) 
> http://www.disobey.com/ && > http://www.gamegrene.com/ please 
> me: 
> http://www.amazon.com/exec/obidos/wishlist/25USVJDH68554
> icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to