Re: Incorrectly prepared lpCmdLine parameter of WinMain()

2004-12-09 Thread Christopher Faylor
On Thu, Dec 09, 2004 at 03:56:12PM -0500, Christopher Faylor wrote: Sounds like you should be using argv[] rather than lpCmdLine. >>> >>>Yes, but that means to create main() function. >> >>Right. We're talking about *UNIX* here. That's what Cygwin is all about. >>main is rather implied. > >Ap

Re: Incorrectly prepared lpCmdLine parameter of WinMain()

2004-12-09 Thread Christopher Faylor
On Thu, Dec 09, 2004 at 03:36:52PM -0500, Christopher Faylor wrote: >On Thu, Dec 09, 2004 at 08:52:16PM +0100, Pavel Kudrna wrote: >> Christopher Faylor wrote:// >> >>>On Thu, Dec 09, 2004 at 12:41:22PM +0100, Pavel Kudrna wrote: >>> The caller of WinMain() incorrectly parses the command line

Re: Incorrectly prepared lpCmdLine parameter of WinMain()

2004-12-09 Thread Christopher Faylor
On Thu, Dec 09, 2004 at 08:52:16PM +0100, Pavel Kudrna wrote: > Christopher Faylor wrote:// > >>On Thu, Dec 09, 2004 at 12:41:22PM +0100, Pavel Kudrna wrote: >> >>>The caller of WinMain() incorrectly parses the command line if e.g. >>>the space is present in the path or filename of the executable.

RE: Incorrectly prepared lpCmdLine parameter of WinMain()

2004-12-09 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Pavel Kudrna > Sent: 09 December 2004 19:52 > Yes, but that means to create main() function. As temporary > solution it > is ok, but I think > that more correct solution would be to replace the content of the file > ...\cygwin-1.5.12

Re: Incorrectly prepared lpCmdLine parameter of WinMain()

2004-12-09 Thread Pavel Kudrna
Christopher Faylor wrote:// On Thu, Dec 09, 2004 at 12:41:22PM +0100, Pavel Kudrna wrote: The caller of WinMain() incorrectly parses the command line if e.g. the space is present in the path or filename of the executable. The lpCmdLine then contains part of the filename at the beginning. /* progr

Re: Incorrectly prepared lpCmdLine parameter of WinMain()

2004-12-09 Thread Christopher Faylor
On Thu, Dec 09, 2004 at 12:41:22PM +0100, Pavel Kudrna wrote: >The caller of WinMain() incorrectly parses the command line if e.g. >the space is present in the path or filename of the executable. >The lpCmdLine then contains part of the filename at the beginning. > >/* program.c*/ >#include >int A

Incorrectly prepared lpCmdLine parameter of WinMain()

2004-12-09 Thread Pavel Kudrna
The caller of WinMain() incorrectly parses the command line if e.g. the space is present in the path or filename of the executable. The lpCmdLine then contains part of the filename at the beginning. /* program.c*/ #include int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR