home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / windows / openloo / 4435 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.4 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!rpi!crdgw1!rdsunx.crd.ge.com!e7sa!ivory
  2. From: ivory@e7sa.crd.ge.com (John Ivory)
  3. Newsgroups: comp.windows.open-look
  4. Subject: Printing from within an Xview program
  5. Message-ID: <1992Nov10.192610.12443@crd.ge.com>
  6. Date: 10 Nov 92 19:26:10 GMT
  7. Article-I.D.: crd.1992Nov10.192610.12443
  8. Sender: usenet@crd.ge.com (Required for NNTP)
  9. Organization: Tower Concepts
  10. Lines: 21
  11. Nntp-Posting-Host: e7sa.epi.syr.ge.com
  12.  
  13. What is the prefered mechanism for an Xview program sending something to the
  14. printer?  I would typically want to gen a file, and then do a
  15. system call to lpr...
  16.  
  17.     sprintf(command, "lpr %s", filename);
  18.     system(command);
  19.  
  20. The Xview documentation however warns against directly using system
  21. calls because of confusions with the Notifier.  I could have the
  22. program fork, and then do an exec call, but that seems like a lot
  23. of effort for the system to go through for such a simple task.
  24.  
  25. Ideas?  Suggestions?
  26.  
  27. -----------------------------  R A Z O R ...  --------------------------- \ \ \ 
  28.    Tower Concepts                                          John E. Ivory   \ \
  29.    103 Sylvan Way                                       ivory@crd.ge.com    \ \
  30.    New Hartford, NY  13413                     ivory@e7sa.epi.syr.ge.com     \
  31.    (315) 724-1471                                                             \
  32. -----------------------  A Configuration Management  --------------------------
  33.                          & Problem Tracking System  
  34.