Re: gcc Unicode and _WinMain@16

2004-06-03 Thread Larry Hall
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 UNI

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

Re: gcc Unicode and _WinMain@16

2004-06-03 Thread Larry Hall
At 12:45 PM 6/3/2004, you wrote: >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 pr

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-02 Thread Larry Hall
At 12:26 PM 6/2/2004, you wrote: >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. I

RE: gcc Unicode and _WinMain@16

2004-06-02 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Clive Levinson > Sent: 01 June 2004 08:17 > 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 WinMai

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-01 Thread Larry Hall
At 03:17 AM 6/1/2004, you wrote: >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 in

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