develooper Front page | perl.beginners | Postings from February 2002

RE: Win32::GUI - Getting rid of console Window?

Thread Previous | Thread Next
From:
Russ Foster
Date:
February 1, 2002 12:18
Subject:
RE: Win32::GUI - Getting rid of console Window?
Message ID:
B156077CCE3DD1119DEC00805F350E1BEEDF62@natasha.swc.com
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. russ.foster@swc.com
v. 630-572-0240
 


> -----Original Message-----
> From: Morbus Iff [mailto:morbus@disobey.com] 
> Sent: Friday, February 01, 2002 11:01 AM
> To: Agustin Rivera; beginners@perl.org
> 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: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> 

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About