If you compile a non-console app, you'll also need to define WinMain like I do
below:
#if defined(WIN32) || defined (_WIN32) || defined(WIN64) || defined(_WIN64)
namespace windowsh {
#include <windows.h>
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR lpCmdline, int)
{
// you might want to parse lpCmdline into seperate args, I'll leave that up to
you
char* argv[2] = { lpCmdline, NULL };
return main(0, argv); // Assuming here no argruments are passed...
}
}
#endif
---------[ Received Mail Content ]----------
Subject : Re: how to prevent the console window poping out when running gtkmm
app in windows vista?
Date : Fri, 01 May 2009 10:00:31 -0500
>From : Jonathon Jongsma <[email protected]>
To : 明覺 <[email protected]>
Cc : [email protected]
明覺 wrote:
> I installed gtkmm and minWG in windows vista, and compiled a sample
> gtkmm app successfully, it also runs successfully, but the problem is
> it also pops out a console window with it, how to disable the console
> window? thanks.
>
I don't program on windows, but if I remember correctly, you have to compile
(or link?)
with the -mwindows option or something like that.
--
jonner
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list