delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/03/13:32:50

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
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 <cygwin AT cygwin DOT com>
From: Clive Levinson <clivel AT bundu DOT com>
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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019