www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/09/19:23:36

Date: Fri, 9 Jan 1998 16:21:25 -0800 (PST)
Message-Id: <199801100021.QAA00869@adit.ap.net>
Mime-Version: 1.0
To: "Richard Hasty" <rhasty AT io DOT com>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Help: read/write from printer port

At 05:44  1/9/1998 GMT, Richard Hasty wrote:
>
>I'm brand new to DJGPP and I'm trying to write stuff to the printer port.
>I'm running Win95 if that has anything to do with it.  I was thinking I'd
>be able to just use "open" and pretend I was writing to a file called LPT1
>or PRN. It does not work as I would have expected though.  The code (only a
>few lines) is at the end of the message. It bombs on the write operation. 
Something like that *should* work. You assume sizeof(int) == 1, which is
wrong (it's 4), but it shouldn't fail completely. See what sort of message
perror() prints.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019