Article View: comp.os.ms-windows.programmer.tools
Article #710printing
From: John C. Lusth
Date: Fri, 18 Dec 1992 19:38
Date: Fri, 18 Dec 1992 19:38
23 lines
1373 bytes
1373 bytes
This question maybe a FAQ; if it is, I most humbly apologize and will wait anxiously for it to appear as it is not on site at the moment. How does one print using OWL? The Borland documentation is very confusing to me (perhaps because I'm a windows newbie). It seems to me that all I would need to do is instead of writing to a display context I would write to device context instead. Windows should take care of everything else for me. Thus, if I had a function that produced some output, I would send it a device context or a display context depending on where I wanted the output to go. Am I being naive? Another question is how to I get a device context? The CreateDC function needs the driver name, the device name, and so on. Why do I need to supply these things? I just want output to go to the default printer. Would some kind soul send me a minimal program to print the phrase "Hello, world!" via Windows? thanks muchly, john -- John C. Lusth, Becton Dickinson Research Center, RTP, NC, USA jcl@bdrc.bd.com
Technical Details
Message-ID:
<1658@bdrc.bdrc.bd.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!caen!uvaarpa!concert!bdrc!jclShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!caen!uvaarpa!concert!bdrc!jcl From: jcl@bdrc.bd.com (John C. Lusth) Newsgroups: comp.os.ms-windows.programmer.tools Subject: printing Message-ID: <1658@bdrc.bdrc.bd.com> Date: 18 Dec 92 19:38:53 GMT Sender: news@bdrc.bdrc.bd.com Lines: 23 Nntp-Posting-Host: otis.bdrc.bd.com