Article View: borland.public.delphi.nativeapi
Article #12159Re: ShellExecute with Wait option
From: Robert Marquardt
Date: Fri, 22 Nov 2002 16:56
Date: Fri, 22 Nov 2002 16:56
16 lines
1462 bytes
1462 bytes
Gordon Whittam wrote:
> In article <3DDD8C74.C2F7A165@borland.newsgroups>, Charles Hacker
> wrote:
>
>>Begin { WinExecAndWait32V2 }
>> StrPCopy(zAppName,FileName);
>>
>
>
> I've wondered before why you don't do a FillChar on zAppName, isn't
> it necessary?
>
> Gordon
>
Because it is StrPCopy(Dest, Source) and it copies a C string.
So the zAppName buffer is cleanly filled.
Technical Details
Message-ID:
<3dde61c2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mailReferences:
<3ddd3dac@newsgroups.borland.com> <3DDD8C74.C2F7A165@borland.newsgroups> <VA.0000009f.002bcf80@mgcsoft.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f94dd,45420977dda024ad,start X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2002-11-22 09:15:50 PST Date: Fri, 22 Nov 2002 17:56:24 +0100 From: Robert Marquardt <robert_marquardt@gmx.de> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: de-DE, en MIME-Version: 1.0 Newsgroups: borland.public.delphi.nativeapi Subject: Re: ShellExecute with Wait option References: <3ddd3dac@newsgroups.borland.com> <3DDD8C74.C2F7A165@borland.newsgroups> <VA.0000009f.002bcf80@mgcsoft.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.6.211.143 Message-ID: <3dde61c2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1037984194 213.6.211.143 (22 Nov 2002 08:56:34 -0800) Lines: 17 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail