Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Starting an Application without a DOS box

7 views
Skip to first unread message

Oliver Grenz

unread,
Oct 9, 2001, 5:38:06 AM10/9/01
to
Hello,

I've started developing little Perl/Tk applications on Win32.
On my system runs ActivePerl-5.6.1.629 and the Tk module.

When I start a newly written programm (click on the shortcut icon on the
desktop) the perl interpreter is invoked in a DOS box and the GUI
programm starts in an other window. That's ok, but I don't want the
command shell window opens every time I start my little GUI app. I know
that I can fire up my programm with the c:\>perl app.pl command but I
want it to start only with a click on the desktop icon without opening
the command shell.

Who can help me?

Thanks a lot

Oliver

Jan Matejka

unread,
Oct 9, 2001, 8:38:13 AM10/9/01
to
You have two possibilities:

1) Use perl.exe - console application and
"manually" close DOS window

if ($^O eq 'MSWin32') {
require Win32::Console;
Win32::Console::Free();
}

2} Use wperl.exe - GUI version of perl - instead
of perl.exe. No DOS window appears

Warning:

if using perl.exe, you are working in OEM coding
x
wperl.exe uses ANSI coding.
Tk uses ANSI coding.

MaT

"Oliver Grenz" <oliver...@huber-spedition.de> wrote in message
news:3BC2C57E...@huber-spedition.de...

Holger Nauendorff

unread,
Oct 9, 2001, 11:22:27 AM10/9/01
to
Jan Matejka wrote:
> You have two possibilities:
>
> [..]
>
Third possibility:
Start your script via a batch-file.

Regards
Holger
--
Holger Nauendorff
mail: hol...@nauendorff.de
Public-Key: http://wwwkeys.de.pgp.net
GnuPG-Fingerprint: C942 F155 7417 155D ABA3 8B0C 725B 71C6 6183 BA58

Bart van den Burg

unread,
Oct 10, 2001, 3:00:53 PM10/10/01
to
unfortunately, a batch runs in console in Win32

Bart

"Holger Nauendorff" <hol...@nauendorff.de> wrote in message
news:jn4vp9...@gandalf.nauendorff.de...

Holger Nauendorff

unread,
Oct 12, 2001, 10:48:58 AM10/12/01
to
uups, you're right. I should start my win98 before writing such stupid stuff.

Holger

Holger Nauendorff

unread,
Oct 13, 2001, 4:50:31 AM10/13/01
to

Hmm, it wasn't so stupid. The console-windows opens only for half a second.
It is been closed after the script has started. Maybe it is not the best
way, but it works.

Holger

John Walker

unread,
Oct 13, 2001, 9:46:58 AM10/13/01
to
There's a very elegant solution to this problem in the Perl Cookbook.

0 new messages