Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rs232 Example

Status
Not open for further replies.

sweep123

Technical User
May 1, 2003
185
GB
I found my old Brother EP-44 printer/terminal the other day. It's 15 years old and used to interface (thermal printer) with my Amstrad CPC-6128 via a RS232 link.

It has a keyboard so you could compose letters and could be used as a printer.

What I would like to be able to do is communicate with it via a MFC C++ program, any suggestions?

I have connected it to COM1 but need some software to talk to it.
 
Well to simply use it as a printer, why not install a printer driver on your windows machine?

The first port of call would be to try the "Generic/Text Only" printer driver, since this is the most basic of them all. It only prints the characters you give it, there is fancy font work involved.

Maybe it supports some of the command codes similar to other dot-matrix printers of the era - say an Epson FX-80. The printer manual (if you still have it) should tell you what command sets it is compatible with, then you could try slightly more advanced printer drivers.

If you want to try and drive it yourself, the first API call you will need is CreateFile

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top