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 Reply-To: Cygwin List 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 , Cygwin List From: Larry Hall Subject: Re: gcc Unicode and _WinMain AT 16 In-Reply-To: <4.3.2.7.2.20040603102042.0186fab8@pop.1and1.com> References: <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20040602090818 DOT 0184fa10 AT pop DOT 1and1 DOT com> <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20040601000627 DOT 018162d8 AT popmail DOT compuserve DOT com> <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20040601000627 DOT 018162d8 AT popmail DOT compuserve DOT com> <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20040602090818 DOT 0184fa10 AT pop DOT 1and1 DOT com> <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20040603102042 DOT 0186fab8 AT pop DOT 1and1 DOT 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/