home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10512 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.4 KB  |  34 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!utcsri!torn!maccs!mcshub!aruba!ruby!rickt
  3. From: rickt@aruba.UUCP (Rickey Thomas Tom)
  4. Subject: Specifying printer ports
  5. Message-ID: <1992Nov11.150935.20036@aruba.uucp>
  6. Sender: rickt@aruba (Rickey Thomas Tom)
  7. Date: Wed, 11 Nov 1992 15:09:35 GMT
  8. Organization: Project Zed
  9. Keywords: printer
  10. Lines: 22
  11.  
  12.     I have an application that requires printing through the parallel port. 
  13. Normally, I could say something like
  14.  
  15.         fprintf( stdprn,".....");
  16.  
  17. However, I believe that this will send output to LPT1. But, in my application, I
  18. am using LPT1 to do other things (interrupt driven data acquisition). I need a
  19. way of forcing output to LPT2 within the program. I have several TSR program
  20. which would work, but I would like to avoid using them if I can. 
  21.  
  22. Although my program does work (LPT1 for acquisition), LPT2 for printing, the
  23. sucess of printing is unpredictable. Sometimes it prints OK, sometimes, it locks
  24. the system. I suspect that part of the problem is related to the fact that I
  25. don't explicitly force printing to LPT2. Am I right ???
  26.  
  27. Thnak you in advance
  28.  
  29. -- 
  30. --------------------------------------------------------------------------------
  31. Rickey Tom                       | Internet Style: aruba!rickt@uu2.psi.com
  32. Programmer/Analyst Project ZE    | UUCP          : ...!uunet!uupsi2!aruba!rickt
  33. --------------------------------------------------------------------------------
  34.