delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/09/09:26:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 9 Apr 2003 08:25:51 -0500
From: Joshua Daniel Franklin <joshuadfranklin AT yahoo DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Bug in GUI App WinMain Arguments
Message-ID: <20030409082551.A25332@ns1.iocc.com>
References: <b6kfnf$nb9$1 AT main DOT gmane DOT org> <01c101c2fae4$daae51e0$5300a8c0 AT pomello> <20030405151952 DOT GA276 AT world-gov> <b6useb$6h9$1 AT main DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <b6useb$6h9$1@main.gmane.org>; from canofspam@att.net on Tue, Apr 08, 2003 at 11:13:27AM -0500

> > > > Also, according to the "Cygwin Users Guide", I have included the
> following
> > > > line in the code.
> > > > WinMainCRTStartup() { mainCRTStartup(); }
> > > > It doesnt seem to be called.  Is the User Guide correct? The same
> problem
> > > > occurs if I omit the line and use the "-e _mainCRTStartup" as
> suggested in
> > > > the User Guide.
> > >
> > > This sounds like out-of-date info to me (but that's just a guess).
> >
> > OK, I'd like to make sure this is up-to-date, but I've never built a
> > GUI Win32 application in Cygwin (well, except setup.exe). Can someone
> > post a "helloworld-gui" example or something? Or, here's what the User's
> > Guide currently says, please reply with inaccuracies:

On Tue, Apr 08, 2003 at 11:13:27AM -0500, BB wrote:
> I have attached a GUI Win32 app.
> 
> It builds without either of the options (WinMainCRTStartup() or -e
> mainCRTStartup) specified in the users guide.  I think the default
> implementation of main() in calls WinMain(), so I wonder if the call to
> mainCRTStartup is required.  Perhaps the FAQ is out of date.
> 
> If built with "-e WinMainCRTStartup" to set the entry point,
> WinMainCRTStartup
> gets called.


Thanks very much. I'll probably update the User's Guide by putting
this example in it instead of the WinMailCRTStartup() stuff. 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019