Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-debug-dev] Unwanted console window

Cool. That's a good note for the FAQ...

Doug Schaefer, QNX Software Systems
Eclipse CDT Project Lead, Tools PMC member
http://cdtdoug.blogspot.com
 
> -----Original Message-----
> From: cdt-debug-dev-bounces@xxxxxxxxxxx [mailto:cdt-debug-dev-
> bounces@xxxxxxxxxxx] On Behalf Of Jean-Claude Gervais
> Sent: Tuesday, April 11, 2006 10:42 AM
> To: CDT Debug developers list
> Subject: Re: [cdt-debug-dev] Unwanted console window
> 
> The solution was to add the
> 
> -mwindows
> 
> option in the compiler and linker miscelaneous settings.
> 
> 
> On Tue, 2006-04-11 at 09:42 -0400, Jean-Claude Gervais wrote:
> > Hello,
> >
> > 	I<ve noticed that when I produce an executable for Windows, whether
> I
> > use the  Windows PE parser or the Cygwin PE parser, the application
> > always opens a text-mode console window when it runs.
> >
> > 	Whether it is debug or release, running under the Eclipse
> environment
> > debugger or not.
> >
> >
> > An app such as this should NOT produce a console window:
> >
> > int WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int
> > nShowCmd ) {
> >
> >     MessageBox( HWND_DESKTOP, "Hello", "Hello", MB_OK );
> >
> >     return 0;
> >
> > }
> >
> >
> > But yet, it does.
> >
> > Is there a way to get rid of the console window?
> >
> > Thanks in advance.
> >
> >
> > _______________________________________________
> > cdt-debug-dev mailing list
> > cdt-debug-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev
> 
> _______________________________________________
> cdt-debug-dev mailing list
> cdt-debug-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev


Back to the top