Article View: borland.public.cppbuilder.nativeapi
Article #17654Re: Named Pipe from DOS app
From: Denville Longhurst
Date: Sat, 08 Mar 2003 19:04
Date: Sat, 08 Mar 2003 19:04
54 lines
3238 bytes
3238 bytes
I really do mean DOS. The problem is I have a legacy app to maintain. I run it in a dos box and it works fine, producing printed output. I have been asked to modify it so that the output can be distributed electronically. I have investigated several pseudo-printers which take print output from an app and convert it to electronic form (eg the Acrobat 'printer') but my legacy app only produces character output to a port (I use LPT3 and assign that to a Windows printer, which allows it to print fine). I really can't convert it to a Windows app; it is written in Clipper and it would take a disproportionate time to convert it. I can make modifications to it and re-compile the app. I know that Clipper send to the printer as a device, so I can re-compile with a pipe address instead of LPT3 (then use a simple windows app to collect the character text and distribute it by e-mail). This almost works, but I have come up against the access denied security issue I posted. It is particularly frustrating, I was prepared for it not to work at all, but to 'almost' work is cruel ! The only other alternative I can think of is to save the output as a file, then run a second app to import and post it. I think this would work, but not as 'smoothly'. Many thanks for the reply, Denville. "Early Ehlinger" <early@respower.com> wrote in message news:3e6a3208@newsgroups.borland.com... > Do you really mean DOS, as in MS-DOS, the 16-bit operating system that is > now defunct? > > Or do you mean a Win32 console-mode program? > > If the latter, using a named pipe is exactly the same in console mode as it > is in windows mode. In fact, everything is the same in console mode as it > is in windows mode, except that Windows has created a console for you before > launching your program. You can even create pop-up windows without any > problem from a console. > > > -- > -- Early Ehlinger CEO, ResPower Inc - Toll-Free : 866-737-7697 -- > - RenderFarm - Lightwave , 3dSMax , Bryce , Maya , AfterEffects - > --- www.respower.com -- 500+ GHz Starting At USD$0.50/GHz*Hour -- > ----------------- SuperComputing For the Masses! ---------------- > "I'm so busy programming my computer to let me be lazy, I never > get any rest!" - John Kaster > > > > >
Technical Details
Message-ID:
<3e6a3eb1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e68c03a$1@newsgroups.borland.com> <3e6a3208@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,29ce32d559b835fb X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-08 11:09:03 PST From: "Denville Longhurst" <Denville@metco.co.uk> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e68c03a$1@newsgroups.borland.com> <3e6a3208@newsgroups.borland.com> Subject: Re: Named Pipe from DOS app Date: Sat, 8 Mar 2003 19:04:32 -0000 Lines: 56 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 80.0.6.116 Message-ID: <3e6a3eb1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1047150257 80.0.6.116 (8 Mar 2003 11:04:17 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail