Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: cygwin AT cygwin DOT com Subject: Re: Bug in GUI App WinMain Arguments Message-ID: <20030409082551.A25332@ns1.iocc.com> References: <01c101c2fae4$daae51e0$5300a8c0 AT pomello> <20030405151952 DOT GA276 AT world-gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; 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/