#: 4980 S3/Languages
08-Jul-90 11:46:52
Sb: #4961-I don't C so well !
Fm: TONY CAPPELLINI 76370,2104
To: Zack Sessions 76407,1524 (X)
I guess I should do the error checking on the open() line, instead of the
write() line. But if somehow the printer was turned off or off-line between the
open() and the write(), how would you test for it. Aaas I said my program sits
and waits without printing any errors until I manually put the printer ON-LINE.
I like to make my programs as bullet-proof as possible. AS you can see, if I
can't detect a printer beong off-line, the program is full of holes. I'm not
sure how to upload code-fragments here or I would send yoy what I am working
with. Maybe I'll give you a call and we can do it over the phone. By looking at
the code you sent me, I'm not sure we are talking about the same situation. I
know how hard it is to get the big picture when your not actually looking at a
printout. TC
|