Article View: microsoft.public.vc.language
Article #19CreateProcess fails ...
From: Herve Autret
Date: Wed, 04 Apr 2001 05:34
Date: Wed, 04 Apr 2001 05:34
39 lines
1987 bytes
1987 bytes
Hi there...
I compile and run:
lpSi = (LPSTARTUPINFO) malloc (sizeof(STARTUPINFO)) ;
lpSi->cb = sizeof(STARTUPINFO) ;
lpPi=(LPPROCESS_INFORMATION)
malloc(sizeof(PROCESS_INFORMATION));
assert ((CreateProcess(
NULL,
pArgStr,
NULL,
NULL,
TRUE,
0,
NULL,
NULL,
lpSi,
lpPi)) == TRUE ) ;
but my program fails as assert is FALSE...
pArgStr is a space-separated string which causes no problem when used in
system(pArgStr), for instance...
I compile with bcc32
-W for the .obj
nothing for the .exe
Have I done something wrong ?
Hmm... for the X-post, let's say that I think that both groups are
concerned.
Regards
--
Herve Autret
--
Herve Autret
Technical Details
Message-ID:
<3ACAB336.2DA8E5DA@free.fr>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!feed2.onemain.com!feed1.onemain.com!newsfeed.icl.net!colt.net!dispose.news.demon.net!demon!grolier!fr.usenet-edu.net!usenet-edu.net!proxad.net!feeder2.proxad.net!nnrp3.proxad.net.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11605a,973b47e75c644910,start X-Google-Attributes: gid11605a,public X-Google-Thread: f7a51,973b47e75c644910,start X-Google-Attributes: gidf7a51,public X-Google-ArrivalTime: 2001-04-03 22:40:03 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!feed2.onemain.com!feed1.onemain.com!newsfeed.icl.net!colt.net!dispose.news.demon.net!demon!grolier!fr.usenet-edu.net!usenet-edu.net!proxad.net!feeder2.proxad.net!nnrp3.proxad.net.POSTED!not-for-mail Message-ID: <3ACAB336.2DA8E5DA@free.fr> From: Herve Autret <autreh@free.fr> Organization: pas encore parfaite X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.13 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: microsoft.public.vc.language,borland.public.cppbuilder.commandlinetools Subject: CreateProcess fails ... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 39 Date: Wed, 04 Apr 2001 05:34:29 GMT NNTP-Posting-Host: 212.27.51.96 X-Complaints-To: abuse@proxad.net X-Trace: nnrp3.proxad.net 986362469 212.27.51.96 (Wed, 04 Apr 2001 07:34:29 CEST) NNTP-Posting-Date: Wed, 04 Apr 2001 07:34:29 CEST