🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: calling dos program

#11826
From: Fraser Ross
Date: Sun, 11 Jan 2004 19:38
15 lines
1523 bytes
I get error 998 if I don't zero the structures.  cb is a member of
STARTUPINFO.

Fraser.

> > >     std::memset(&pi, 0, sizeof(pi)); // not needed
> > >     std::memset(&si, 0, sizeof(si)); // not needed
> > I find that this is needed.  It is in the example for
> > CreateProcess at MSDN.
>
> As you wish.
>
> Other than the process info size element (cb), both of those structures
are
> output from CreateProcess, not input.
Technical Details
Message-ID: <4001a637@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!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: <400038d3@newsgroups.borland.com> <40005bcc$1@newsgroups.borland.com> <400164b5@newsgroups.borland.com> <40019dad@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,cd433fcf47e8f03b
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-11 11:39:31 PST
From: "Fraser Ross" <fraserATmembers.v21.co.unitedkingdom>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <400038d3@newsgroups.borland.com> <40005bcc$1@newsgroups.borland.com> <400164b5@newsgroups.borland.com> <40019dad@newsgroups.borland.com>
Subject: Re: calling dos program
Date: Sun, 11 Jan 2004 19:38:27 -0000
Lines: 17
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.1165
NNTP-Posting-Host: 80.225.134.122
Message-ID: <4001a637@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1073849911 80.225.134.122 (11 Jan 2004 11:38:31 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!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