🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: createprocess does not work

#14468
From: Remy Lebeau (TeamB)
Date: Mon, 11 Aug 2003 17:53
23 lines
1708 bytes
"N. Karademir" <n.karademir@smart-software.org> wrote in message
news:3f3781c5@newsgroups.borland.com...

> CreateProcess("c:\\mail\\pkunzip.exe",
>                                    "c:\\mail\\inbox\\file.zip",
<snip>

Try one of thse instead:

    CreateProcess(NULL, "c:\\mail\\pkunzip.exe c:\\mail\\inbox\\file.zip",

    CreateProcess("c:\\mail\\pkunzip.exe", "c:\\mail\\pkunzip.exe
c:\\mail\\inbox\\file.zip",

There is a bug (or misdocumented feature) in CreateProcess() when both the
lpApplicationName and lpCommandLine parameters are specified.  If the
lpApplicationName is the path to the executable, the path is included in the
lpCommandLine, you have to include it manually.  Many programs expect the
lpApplication is be part of the lpCommandLine.


Gambit
Technical Details
Message-ID: <3f37d678$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f3781c5@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,100ba32b4819eec0
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-11 10:56:25 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f3781c5@newsgroups.borland.com>
Subject: Re: createprocess does not work
Date: Mon, 11 Aug 2003 10:53:03 -0700
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f37d678$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060623992 207.175.226.26 (11 Aug 2003 10:46:32 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail