Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Reply-To: Cygwin List <cygwin@cygwin.com>
Message-Id: <6.1.0.6.0.20040603143624.03261718@pop.theworld.com>
X-Sender: 
Date: Thu, 03 Jun 2004 14:37:25 -0400
To: Clive Levinson <clivel@bundu.com>, Cygwin List <cygwin@cygwin.com>
From: Larry Hall <cygwin-lh@cygwin.com>
Subject: Re: gcc Unicode and _WinMain@16
In-Reply-To: <4.3.2.7.2.20040603102042.0186fab8@pop.1and1.com>
References: <4.3.2.7.2.20040602090818.0184fa10@pop.1and1.com> <4.3.2.7.2.20040601000627.018162d8@popmail.compuserve.com> <4.3.2.7.2.20040601000627.018162d8@popmail.compuserve.com> <4.3.2.7.2.20040602090818.0184fa10@pop.1and1.com> <4.3.2.7.2.20040603102042.0186fab8@pop.1and1.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

At 01:32 PM 6/3/2004, you wrote:
>I have eventually identified the problem, the original
>app was written for the Pocket PC, which is only Unicode:
>
>int WINAPI WinMain(HINSTANCE inst,HINSTANCE prev,LPTSTR cmd,int show )
>
>notice that it uses an LPTSTR for the cmd parameter.
>
>When I defined UNICODE for the desktop app, I copied this, however the
>desktop app requires this parameter to always be an LPSTR whether UNICODE
>is defined or not.

Ouch!  

That would not have been my first guess at the cause of the problem. ;-)


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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

