Date: Fri, 9 Jan 1998 16:21:25 -0800 (PST) Message-Id: <199801100021.QAA00869@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: "Richard Hasty" , djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Help: read/write from printer port Precedence: bulk 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