Article View: borland.public.delphi.nativeapi
Article #12122Re: ShellExecute with Wait option
From: Peter Below (TeamB)
Date: Sun, 24 Nov 2002 09:04
Date: Sun, 24 Nov 2002 09:04
20 lines
1921 bytes
1921 bytes
In article <VA.000000a0.0073c3db@mgcsoft.com>, Gordon Whittam wrote: > > No, the StrPCopy routine makes the zAppname properly zero-terminated. > > But does leave garbage after the #0. Delphi strings will accept #0 'in > the middle' so in theory (mine that is<g>), although not in this case, > it would be *possible* to get 'Hello World#0)_*)^T%�EY%*&^YH' Delphi > string. While true this is irrelevant to the problem at hand since the string is handed to an API routine for processing, and for that the #0 is the terminator. -- Peter Below (TeamB) Use the newsgroup archives : http://www.mers.com/searchsite.html http://www.tamaracka.com/search.htm http://groups.google.com http://www.prolix.be
Technical Details
Message-ID:
<VA.00009679.005ca2af@antispam.compuserve.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mailReferences:
<3ddd3dac@newsgroups.borland.com> <3DDD8C74.C2F7A165@borland.newsgroups> <VA.0000009f.002bcf80@mgcsoft.com> <VA.00009666.008654c8@antispam.compuserve.com> <VA.000000a0.0073c3db@mgcsoft.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f94dd,45420977dda024ad X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2002-11-24 01:15:38 PST Date: Sun, 24 Nov 2002 10:04:07 +0100 Newsgroups: borland.public.delphi.nativeapi Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va Organization: TeamB Message-ID: <VA.00009679.005ca2af@antispam.compuserve.com> Subject: Re: ShellExecute with Wait option From: "Peter Below (TeamB)" <100113.1101@compuXXserve.com> Reply-To: 100113.1101@compuXXserve.com References: <3ddd3dac@newsgroups.borland.com> <3DDD8C74.C2F7A165@borland.newsgroups> <VA.0000009f.002bcf80@mgcsoft.com> <VA.00009666.008654c8@antispam.compuserve.com> <VA.000000a0.0073c3db@mgcsoft.com> NNTP-Posting-Host: 172.185.191.136 X-Trace: newsgroups.borland.com 1038128636 172.185.191.136 (24 Nov 2002 01:03:56 -0800) Lines: 22 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mail