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



Include the following snippet in your sources:

#ifdef _WIN32
#include <windows.h>
#endif

...
...

#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.

Marc.
-- 
----------------------------------------------------
Marc van Kempen                 BowTie Technology     
Email: marc@bowtie.nl            WWW & Databases
tel. +31 40 2 43 20 65         
fax. +31 40 2 44 21 86         http://www.bowtie.nl
----------------------------------------------------





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