Article View: borland.public.cppbuilder.nativeapi
Article #12788Re: CreateProcess fails under Win XP
From: Steve Green
Date: Mon, 17 Nov 2003 21:04
Date: Mon, 17 Nov 2003 21:04
20 lines
1489 bytes
1489 bytes
Bob Gonder <notbg@notmindspring.invalid> wrote: >Steve Green wrote: > >> >>char Prog[40] = "C:\\Program Files\\Yamp 2.3\\yamp20.exe "; > >1) You have a space after the .exe >2) You might try Sergey's suggestion (see below) >3) Don't like counting chars, would do like this instead: > >char Prog[] = "\"C:\\Program Files\\Yamp 2.3\\yamp20.exe\""; > >That way, Prog is exactly the size of the string, including the null. > > Thanks All, Will try this and repost later. I dont't have XP, another member of our group found this out. Will try to get on an XP system.
Technical Details
Message-ID:
<3fb945df$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fb9254a$1@newsgroups.borland.com> <u4cirvg8vq0ojanvvesg6jahq9pv94r27j@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9dd22bf10a5b73fb X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-17 14:09:58 PST From: "Steve Green" <sgreen@wabtec.com> Sender: "Steve Green" <sgreen@wabtec.com> Reply-To: "Steve Green" <sgreen@wabtec.com> Subject: Re: CreateProcess fails under Win XP Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 63.107.135.116 References: <3fb9254a$1@newsgroups.borland.com> <u4cirvg8vq0ojanvvesg6jahq9pv94r27j@4ax.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <3fb945df$1@newsgroups.borland.com> Date: 17 Nov 2003 14:04:15 -0700 X-Trace: newsgroups.borland.com 1069106655 207.105.83.66 (17 Nov 2003 14:04:15 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail