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

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

Thread Previous
From:
Morbus Iff
Date:
February 1, 2002 09:00
Subject:
Re: Win32::GUI - Getting rid of console Window?
Message ID:
5.1.0.14.2.20020201115955.009ed110@red.totalnetnh.net
 >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


Thread Previous


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