This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc Unicode and _WinMain@16


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]