🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #41255

Re: Windows 16/32 printer code for slrn

#41255
From: root
Date: Sun, 31 May 1998 00:00
47 lines
2576 bytes
On 30 May 1998 00:39:03 GMT, root@gte.net <root@gte.net> wrote:
>On 28 May 1998 18:08:38 GMT, John E. Davis <davis@space.mit.edu> wrote:
>>On 28 May 1998 13:14:55 GMT, root@gte.net <root@gte.net>
>>wrote:
>>>article numbers that occurs in a number of news readers.  Have you
>>>checked whether your network considers the file "prn" to be the
>>>network printer?
>>
>>It does not:
>>  
>>    copy con: prn:
>>    test
>>    ^Z
>>    Write fault error writing device PRN
>>    Abort, Retry, Ignore, Fail?
>>    Fail on INT 24 - prn
>>            0 files(s) copied
>>
>>This is the reason I coded the printer interface in C instead of a
>>macro that opened prn: and wrote out the article to that.
>>
>The following is (roughly and approximately) what your code would
>look like if it didn't rely on winspool.lib and was upwardly
>compatible with everything from Windows 3 up to the latest NT
>and 98:

Actually, your reason for using the winspool.lib code in slrn is not that
other methods fail.  It is simply that Microsoft's Dos window doesn't
permit any other method for printing from the console, if the printer
won't accept character output directly via stdio calls.

I've been checking, and the PrintDlg() call fails from the WIndows 32
console, using CreateDC and getting the printer and driver info from
the win.ini file also fails to get the printer running.

The question comes down to consistency then:  If you rely on a separate
sendmail or sendsmtp program from slrn, then why not simply make the
printer code a separate, and WinMain, type of program?  You could call
it WinLpr or something like that.  Then slrn wouldn't be constrained
by the narrow architecture of the Win32 console.

Oh well, I've got a little spare time.  Maybe I'll implement a Win32Lpr.exe
program.


Technical Details
Message-ID: <6kqnf7$qsr$1@gte1.gte.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <6kefal$6pn$1@gte1.gte.net> <6ki8li$j57$1@gte2.gte.net> <slrn6mpvkk.lsk.davis@aluche.mit.edu> <6kjo0f$81p$1@gte1.gte.net> <slrn6mra14.m2b.davis@aluche.mit.edu> <6knkf7$kea$1@gte2.gte.net>

Show Full Headers
Complete Article Headers
Message-ID: <6kqnf7$qsr$1@gte1.gte.net>
Subject: Re: Windows 16/32 printer code for slrn
Date: Sun, 31 May 1998 00:00:00 +0000
From: root@gte.net ()
References: <6kefal$6pn$1@gte1.gte.net> <6ki8li$j57$1@gte2.gte.net> <slrn6mpvkk.lsk.davis@aluche.mit.edu> <6kjo0f$81p$1@gte1.gte.net> <slrn6mra14.m2b.davis@aluche.mit.edu> <6knkf7$kea$1@gte2.gte.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 358103468
Reply-To: vtailor@gte.net-nospam
Organization: The Light
X-Auth: C01F90070AD8D6D153D28491
Newsgroups: news.software.readers