gcc Unicode and _WinMain@16

2004-06-01 Thread Clive Levinson
Hi, I have a simple Windows app that I am building using gcc: gcc -c -Wall -mno-cygwin app.cpp -o app.o windres -i resource.rc -o resource.o gcc -Wall -mno-cygwin app.o -o app.exe resource.o -s -mwindows The app entry is: int WINAPI WinMain(HINSTANCE instance,HINSTANCE prevInstance,LPTSTR cmdLin

Re: gcc Unicode and _WinMain@16

2004-06-02 Thread Clive Levinson
At 22:46 01/06/2004 -0400, Larry Hall wrote: This is really a question for the MinGW list at mingw.org. You're using the -mno-cygwin switch to gcc which means you're not using Cygwin. By definition, this fact makes the question off-topic for this list. If you google around a bit though, you'll p

Re: gcc Unicode and _WinMain@16

2004-06-03 Thread Clive Levinson
Hi Larry, You don't need to cc me. I set my reply-to to the list because that's where I like to read any replies. Sorry about that. If you can send a simple, small example to the list, I'll see if I can find some time to try to investigate your problem. Thanks for the offer, I eventually created

Re: gcc Unicode and _WinMain@16

2004-06-03 Thread Clive Levinson
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, how