
Hi there,
While not a strictly Inkscape-related question, Inkscape is one of the best gtkmm/c++ apps around (or at least I hope, as I noticed you started with gtk/c), so I thought you might be able to help.
I'm experimenting with gtkmm and have the simplest program as outlined in the docs compiled as a Windows .exe, here's the code:
#include <gtkmm.h>
int main(int argc, char* argv[]) { Gtk::Main kit(argc, argv);
Gtk::Window window;
Gtk::Main::run(window);
return 0; }
My problem is that the resulting .exe opens the console Window along with the GUI, Inkscape doesn't do this, and I wondered how you achieved that.
I know this list isn't for general Q&A, but if you have the time that'd be great, if not no worries.
Kind regards, Hal

On Mon, Sep 05, 2005 at 03:38:56PM +0100, Hal Lorenz wrote:
Hi there,
While not a strictly Inkscape-related question, Inkscape is one of the best gtkmm/c++ apps around (or at least I hope, as I noticed you started with gtk/c), so I thought you might be able to help.
My problem is that the resulting .exe opens the console Window along with the GUI, Inkscape doesn't do this, and I wondered how you achieved that.
I think you may need to redirect console output somewhere in order to prevent this. See src/ui/dialog/messages.cpp for what we do to redirect things (in particular see Messages::captureLogMessages()).
Bryce

Hal Lorenz wrote:
...
My problem is that the resulting .exe opens the console Window along with the GUI, Inkscape doesn't do this, and I wondered how you achieved that. ...
You may want to check that your linker is configured to build for the windows subsystem (the /subsystem option if you're using MSVC).
participants (3)
-
Bryce Harrington
-
Hal Lorenz
-
Jasper van de Gronde