Re: BUG: winmain GetCommandLine only returning program name and path with no arguments

2017-05-13 Thread Brian Inglis
On 2017-05-13 08:30, Mike Barry wrote: > Below is a sample program that demonstrates that the GetCommandLine > function is not returning the command line arguments. I attached > cygcheck.out. > > #include > #include > > int WINAPI > WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, i

Re: BUG: winmain GetCommandLine only returning program name and path with no arguments

2017-05-13 Thread Andrey Repin
Greetings, Mike Barry! > Below is a sample program that demonstrates that the GetCommandLine > function is not returning the command line arguments. I attached > cygcheck.out. > #include > #include > int WINAPI > WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw) { > c

Re: BUG: winmain GetCommandLine only returning program name and path with no arguments

2017-05-13 Thread Richard H Lee
It works when using the mingw cross compiler. On 13/05/2017 15:30, Mike Barry wrote: Below is a sample program that demonstrates that the GetCommandLine function is not returning the command line arguments. I attached cygcheck.out. #include #include int WINAPI WinMain(HINSTANCE hInst, HINST

Re: BUG: winmain GetCommandLine only returning program name and path with no arguments

2017-05-13 Thread Dan Kegel
That same executable behaves properly when built with cl.exe *or* run from cmd. Only when built with cygwin gcc *and* run from cygwin shell does it not show the full string, and bonus, in that case does not set szCmdLine properly? #include #include int WINAPI WinMain(HINSTANCE hInst, HINSTANCE