How to write programs for printers in C, C++

Help me to write a simple programs for printers using C, C++

Page 1 of 1

2 Replies - 1358 Views - Last Post: 06 December 2007 - 07:53 AM Rate Topic: -----

#1 Ashok1974  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 06-December 07

How to write programs for printers in C, C++

Post icon  Posted 06 December 2007 - 02:43 AM

Hi, Please help me to write a simple programs for printers using C, C++ :blink:
Is This A Good Question/Topic? 0
  • +

Replies To: How to write programs for printers in C, C++

#2 htsh_shrm  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 52
  • Joined: 18-October 07

Re: How to write programs for printers in C, C++

Posted 06 December 2007 - 04:13 AM

you can do programming for printer using interrupt 17 in the int86 function...........just check out the values for various registers which are required for input for carrying out specific jobs.
you can get all those list by making a search on google.com
jus enter ralf browns interrupt list
& the nxt thing will your skills...........
Was This Post Helpful? 0
  • +
  • -

#3 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5395
  • View blog
  • Posts: 27,389
  • Joined: 10-May 07

Re: How to write programs for printers in C, C++

Posted 06 December 2007 - 07:53 AM

On Linux, I simply use fopen /dev/lpt0 & write to it like a file. However, you must use both \n & \r.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1