CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)?

2010-02-18 Thread Piotr Krukowiecki
rSingleObject(pi.hProcess, INFINITE); CloseHandle( pi.hProcess ); CloseHandle( pi.hThread ); } #define COMMAND_ARGS " \"127.0.0.127\\foo.cxx\" " int main() { runCommand("F:\\t\\dumpargs_gcc.exe " COMMAND_ARGS); runCommand("F:\\t\\dump

Re: CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)?

2010-02-18 Thread Piotr Krukowiecki
On Thu, Feb 18, 2010 at 7:02 PM, Larry Hall (Cygwin) wrote: > On 02/18/2010 12:55 PM, Piotr Krukowiecki wrote: >> - if the executed program is compiled with cygwin's gcc the program >> receives \127.0.0.127\foo.cxx (just one backslash at the begining). >> - if it&

Re: CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)?

2010-02-19 Thread Piotr Krukowiecki
On Thu, Feb 18, 2010 at 9:45 PM, Larry Hall (Cygwin) wrote: > On 02/18/2010 03:24 PM, Piotr Krukowiecki wrote: >> On Thu, Feb 18, 2010 at 7:02 PM, Larry Hall (Cygwin) >>> On 02/18/2010 12:55 PM, Piotr Krukowiecki wrote: >>>> - if the executed program is compiled

Re: CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)?

2010-02-19 Thread Piotr Krukowiecki
On Fri, Feb 19, 2010 at 1:37 PM, Piotr Krukowiecki wrote: >>> "\\hostname" is remote path location, I don't think I can use >>> "//hostname" instead, either for cygwin program and especially not for >>> not-cygwin program, can I? (can't ch

Re: CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)?

2010-02-19 Thread Piotr Krukowiecki
On Fri, Feb 19, 2010 at 1:37 PM, Piotr Krukowiecki wrote: > On Thu, Feb 18, 2010 at 9:45 PM, Larry Hall (Cygwin) wrote: >> On 02/18/2010 03:24 PM, Piotr Krukowiecki wrote: >>> On Thu, Feb 18, 2010 at 7:02 PM, Larry Hall (Cygwin) >>>> On 02/18/2010 12:55 PM, Piotr Kru

Re: CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)?

2010-02-19 Thread Piotr Krukowiecki
rocess that is), but in the case of cygwin process cygwin1.dll, as you wrote, strips quotes (and what is more important backslashes inside the quotes) and so the result is different. Please correct me if I'm missing something. -- Piotr Krukowiecki -- Problem reports: http://cygwin.co