🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: microsoft.public.vc.language
Article #20

Re: CreateProcess fails ...

#20
From: Jan Bares
Date: Wed, 04 Apr 2001 09:40
52 lines
2067 bytes
STARTUPINFO is *input* parameter....

Regards Jan

--

Jan Bares
(remove no.spam from my email address)
JPCAD Graphics Engine developer, surf to http://www.antek.cz


"Herve Autret" <autreh@free.fr> wrote in message
news:3ACAB336.2DA8E5DA@free.fr...
> 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: <O3SH$sOvAHA.1968@tkmsftngp03>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!tkmsftngp01!tkmsftngp03
References: <3ACAB336.2DA8E5DA@free.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11605a,973b47e75c644910
X-Google-Attributes: gid11605a,public
X-Google-Thread: f7a51,973b47e75c644910
X-Google-Attributes: gidf7a51,public
X-Google-ArrivalTime: 2001-04-04 03:00:04 PST
From: "Jan Bares" <jan.bares@antek.cz.no.spam>
References: <3ACAB336.2DA8E5DA@free.fr>
Subject: Re: CreateProcess fails ...
Date: Wed, 4 Apr 2001 11:40:05 +0200
Lines: 54
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <O3SH$sOvAHA.1968@tkmsftngp03>
Newsgroups: microsoft.public.vc.language,borland.public.cppbuilder.commandlinetools
NNTP-Posting-Host: jan.antek.cz 195.250.137.235
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!tkmsftngp01!tkmsftngp03