Re: [gtk-list] Re: Win32 port - suppressing the parent terminal window on startup.



Marc van Kempen wrote:
> 
> > #ifdef _WIN32
> > int WINAPI
> > WinMain(int hInstance, int hPrevInstance, int lpCmdLine, int nCmdShow)
> > {
> >     return(main(__argc, __argv));
> > } /* WinMain() */
> > #endif
> >
> > This will make it run as a Win32 GUI application instead of
> > a Win32 console application.
> >
> Oops, too fast,
> 
> You also need a different link flag (for msvc):
> 
>         /subsystem:windows
 
  I haven't tried this but setting the entry point to 'mainCRTStartup'
in the linker settings should link directly to main() instead of having
a winmain() call it.

Leonardo



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]