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 Message-Id: <4.3.2.7.2.20040603102042.0186fab8@pop.1and1.com> X-Sender: m35403774-1 AT pop DOT 1and1 DOT com Date: Thu, 03 Jun 2004 10:32:32 -0700 To: Cygwin List From: Clive Levinson Subject: Re: gcc Unicode and _WinMain AT 16 In-Reply-To: <6.1.0.6.0.20040602233135.03235e20@pop.theworld.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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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. Thanks for the assistance, Clive -- 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/