🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12787

Re: CreateProcess fails under Win XP

#12787
From: Bob Gonder
Date: Mon, 17 Nov 2003 20:39
12 lines
1432 bytes
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.
Technical Details
Message-ID: <u4cirvg8vq0ojanvvesg6jahq9pv94r27j@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fb9254a$1@newsgroups.borland.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 12:39:44 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: CreateProcess fails under Win XP
Date: Mon, 17 Nov 2003 12:39:01 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <u4cirvg8vq0ojanvvesg6jahq9pv94r27j@4ax.com>
References: <3fb9254a$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.164.41
X-Trace: newsgroups.borland.com 1069101544 67.31.164.41 (17 Nov 2003 12:39:04 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail