Article View: borland.public.cppbuilder.nativeapi
Article #7243Re: Named Pipes as Files
From: Bob Gonder
Date: Tue, 22 Feb 2005 16:27
Date: Tue, 22 Feb 2005 16:27
16 lines
1589 bytes
1589 bytes
Mike King wrote: >From time to time, I find that it would be nice to pipe input into a GUI >application like one would do for a console application by using the '|' >character. Is it possible to create a named pipe and pull content from it >as if it were a file? What is it exactly, that you want to do? '|' and '<' redirected stdin. '>' redirected stdout. Those pipes still work from the commandline. An application can create pipes, and launch a sub program that will then think those pipes are stdin and stdout. See CreateProcess(), and in particular, the STARTUPINFO structure.
Technical Details
Message-ID:
<kpmm11lvtf40qt667g0a9fdl83rdo8g67p@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<421b4505@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bcb64eadaf6e372 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Named Pipes as Files Date: Tue, 22 Feb 2005 08:27:01 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <kpmm11lvtf40qt667g0a9fdl83rdo8g67p@4ax.com> References: <421b4505@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.146.209 X-Trace: newsgroups.borland.com 1109089620 67.77.146.209 (22 Feb 2005 08:27:00 -0800) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail