delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/09/16:51:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: Thu, 9 Dec 2004 16:52:02 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Incorrectly prepared lpCmdLine parameter of WinMain()
Message-ID: <20041209215202.GA14599@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <41B8ACF0 DOT 4080208 AT mff DOT cuni DOT cz> <20041209203652 DOT GC14051 AT trixie DOT casa DOT cgf DOT cx> <20041209205612 DOT GD14051 AT trixie DOT casa DOT cgf DOT cx>
Mime-Version: 1.0
In-Reply-To: <20041209205612.GD14051@trixie.casa.cgf.cx>
User-Agent: Mutt/1.4.1i

On Thu, Dec 09, 2004 at 03:56:12PM -0500, Christopher Faylor wrote:
>>>>Sounds like you should be using argv[] rather than lpCmdLine.
>>>
>>>Yes, but that means to create main() function.
>>
>>Right.  We're talking about *UNIX* here.  That's what Cygwin is all about.
>>main is rather implied.
>
>Apologies.  After another 30 seconds of deep thought I realized that the above
>statement was completely clueless.
>
>If we are going to provide a WinMain, it should do the right thing.  I'll look
>at fixing libcmain.c and generating a new snapshot.
>
>Unfortunately, this will require relinking your software.

There is a new snapshot up there:

http://cygwin.com/snapshots/

You'll need to grab libcygwin.a from cygwin-inst-20041209.tar.bz2 .

You don't need to also install cygwin1.dll unless you want to.  There are some
potentially destabilizing changes in this DLL so anyone who downloads this
make sure that you have a backup strategy.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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