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/