Ethereal-dev: [Ethereal-dev] Why a GUI app?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Gisle Vanem" <giva@xxxxxxxxx>
Date: Mon, 3 Nov 2003 18:08:04 +0100
Why do we link the MSVC version of ethereal as a GUI app
with link option "/subsystem:windows"? 

It's much easier to use "/subsystem:console". This automatically 
gives us a console instead of trying to use AllocConsole() and
sync stdio/stdout with that.

Besides the Glib/GTK asserts etc, is a console strictly required? 

With "/subsystem:console" or "-Wl,--subsystem,console" for gcc
and started from a cmd-line, "ethereal -v" prints to current shell.

If started from Explorer or a short-cut, "ethereal -v" prints to 
a new console created for us. Only a small cosmetic problem
is that the new console is created before the main GTK window,
and then put behind that.

I've made a small function to check the sub-system in case
makefile used the wrong setting. But I'd like to hear some views
on this.

--gv