#include <gtk/gtk.h>
#ifdef NDEBUG
#ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> // included for WinMain #endif
int main( int argc, char **argv )
{
// normal gtk+ stuff goes here
}#ifdef _WIN32
#ifdef NDEBUG
int APIENTRY WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
return main( __argc, __argv );
}
#endif
#endifHarring Figueiredo wrote:
The compiler flag -mnowindows or -mwindows (one of the 2). Apparently does the trick.
Let me know if it works.
Harring Figueiredo.
--- "F. Kater" <f kater2 gmx net> wrote:
Hi,
I hope you don't find this issue too off topic here! :-)
I am developing a gtk win32 app. As IDE I use ms visual studio c++ 6.0. This projects was created once as an "empty console application" to be most indipendant from ms -- however, now I would like to turn off the console running in the background of my app. I don't use any ms dependant stuff.
Is there an easy to do that -- port main(...) to WinMain(...) etc?
Felix _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list gnome org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail _______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list