gcc Unicode and _WinMain@16

Clive Levinson clivel@bundu.com
Thu Jun 3 17:32:00 GMT 2004


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/



More information about the Cygwin mailing list