home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / misc / 29467 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.1 KB  |  31 lines

  1. Newsgroups: comp.os.os2.misc
  2. Path: sparky!uunet!psinntp!newstand.syr.edu!gumby!jtcox
  3. From: jtcox@syr.edu (Ted Cox)
  4. Subject: printing binary files, emx/gcc
  5. Message-ID: <1992Sep7.092236.20536@newstand.syr.edu>
  6. Keywords: printing, binary, emx/gcc
  7. Reply-To: jtcox@syr.edu
  8. Organization: Syracuse University
  9. Date: Mon, 7 Sep 92 09:22:36 EDT
  10. Lines: 19
  11.  
  12. I want to send some binary files to my paintjet in an os2 window.
  13. Under DOS this is easy: copy /b datafile lpt1.  In a DOS window under
  14. os2, or in an os2 window it doesn't work the same.  I get (at least) an
  15. extra character to start with and a form feed at the end.  I can live
  16. with extra form feed, but not the extra character, which prints a 0 and
  17. a CR.  I have the latest paintjet driver from hobbes.  I can drag the
  18. file to the paintjet icon (this doesn't print the extra character (but
  19. still causes a form feed), but I want to do this within a c program.
  20.  
  21. Is is possible to send a stream of bytes, no more no less, to a printer
  22. attached to the first parallel port under os2?  Can this be done with
  23. emx/gcc?
  24.  
  25. Thanks,
  26. Ted Cox
  27.  
  28.  
  29.  
  30.  
  31.