Doing things with the printer !!! 
Author Message
 Doing things with the printer !!!

Greetings all,

Sorry if my question is naive but I am quite new in C-programming. I am
writing a small program that requires printing things on the printer.

I unfortunately do not know how to use my TurboC(2.1-Borland) in order
to do the printing.

I wonder if somebody could either give the few steps~(in C preferably)
to follow or send me a piece of program that does this.

Thanks for your time and help.



Mon, 01 Jan 2001 03:00:00 GMT  
 Doing things with the printer !!!


Quote:
>Greetings all,

>Sorry if my question is naive but I am quite new in C-programming. I am
>writing a small program that requires printing things on the printer.

The C language has no support for printing so there is no answer to your
question as far as comp.lang.c is concerned.

Quote:
>I unfortunately do not know how to use my TurboC(2.1-Borland) in order
>to do the printing.

I would recommend that you ask about what extensions that compiler provides
for pringing on comp.os.msdos.programmer or one of the borland.* newsgroups.

--
-----------------------------------------


-----------------------------------------



Tue, 02 Jan 2001 03:00:00 GMT  
 Doing things with the printer !!!

Quote:

> I unfortunately do not know how to use my TurboC(2.1-Borland) in order
> to do the printing.
> I wonder if somebody could either give the few steps~(in C preferably)
> to follow or send me a piece of program that does this.

There are no standard facilities for doing this, so what works on one
compiler is likely not to work with another.  Under Turbo C I believe
that in addition to the standard stdin, stdout and stderr the compiler
also gives you the stdprn file which you can write to to write to the
printer.  More portably under DOS, you could open the file "PRN" or
one of the "LPTx" files and write to that.

--

            http://www.tardis.ed.ac.uk/~broonie/
EUFS        http://www.eusa.ed.ac.uk/societies/filmsoc/



Thu, 04 Jan 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Difference between two different ways of doing things

2. For those who like doing things backwards

3. doing graphical thing on the dos prompt

4. Simpler way of doing things in VC7 ATL?

5. ATL and doing things the wrong way

6. _open not doing the right thing

7. debugging things done vis nmake

8. Trouble doing simple things

9. ASSERT doing strange things

10. Newbie doing dumb things with m_strFilter...please help

11. Side Effects: Good Thing or Bad Thing

12. Getting printer handle from Printer.hDC

 

 
Powered by phpBB® Forum Software