In the newgroups there are many questions about serial communication so I thought:
make it public! It's freeware. The only thing I expect from users is that they drop me a mail.
All modifications on this class are free, but please let me know if it solves a bug
or adds some good features. Also comment your code and don't let me solve your bugs!
Target:
The class is not intended to use as a baseclass for modemcommunication but
more for driving hardware or reading hardware via the serial port.
From the classes included there is only one class important: CSerialPort.
The other classes are only there to illustrate the use of this class.
Usage:
In your software you only need to create an instance of the CSerialPort class
and call InitPort.
// the owner (CWnd) of the port (receives message)
Then the tread that watches the port is started and all events on the port are send to
the owner. The receive a character the owner needs a messageentry in the messagemap:
Add www.codeguru.com to your favorites Add www.codeguru.com to your browser search box IE 7 | Firefox 2.0 | Firefox 1.5.xReceive news via our XML/RSS feed
RATE THIS ARTICLE:
Excellent Very Good Average Below Average Poor
(You must be signed in to rank an article. Not a member? Click here to register)