This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug in GUI App WinMain Arguments


> > > > 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]