Re: [gtk-list] Re: Win32 port - suppressing the parent terminal window on startup.
- From: Marc van Kempen <marc bowtie nl>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Win32 port - suppressing the parent terminal window on startup. 
- Date: Fri, 10 Sep 1999 12:57:58 +0200
> 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.
>
Oops, too fast,
You also need a different link flag (for msvc):
	/subsystem:windows
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]