Mail Archives: djgpp/1998/01/09/19:23:36
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 -