home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / tools / 1768 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.3 KB

  1. Path: sparky!uunet!spool.mu.edu!caen!uvaarpa!concert!bdrc!jcl
  2. From: jcl@bdrc.bd.com (John C. Lusth)
  3. Newsgroups: comp.os.ms-windows.programmer.tools
  4. Subject: printing
  5. Message-ID: <1658@bdrc.bdrc.bd.com>
  6. Date: 18 Dec 92 19:38:53 GMT
  7. Sender: news@bdrc.bdrc.bd.com
  8. Lines: 23
  9. Nntp-Posting-Host: otis.bdrc.bd.com
  10.  
  11. This question maybe a FAQ; if it is, I most humbly apologize and will
  12. wait anxiously for it to appear as it is not on site at the moment.
  13.  
  14. How does one print using OWL?  The Borland documentation is very confusing
  15. to me (perhaps because I'm a windows newbie).  It seems to me that
  16. all I would need to do is instead of writing to a display context
  17. I would write to device context instead.  Windows should take
  18. care of everything else for me.  Thus, if I had a function that produced
  19. some output, I would send it a device context or a display context
  20. depending on where I wanted the output to go.  Am I being naive? 
  21.  
  22. Another question is how to I get a device context?  The CreateDC function
  23. needs the driver name, the device name, and so on.  Why do I need to
  24. supply these things?  I just want output to go to the default printer.
  25.  
  26. Would some kind soul send me a minimal program to print the phrase
  27. "Hello, world!" via Windows?
  28.  
  29. thanks muchly,
  30.  
  31. john
  32. -- 
  33. John C. Lusth, Becton Dickinson Research Center, RTP, NC, USA  jcl@bdrc.bd.com
  34.