danigraf
July 19th, 1999, 09:09 PM
I'm using VC 6.0++ and Windows NT 4.0. I have to implement a serial
port communication with the following requirements:
- Port initialization: baudrate, parity, etc.
- Writing to port: I have to write strings to the port.
- Receiving from the port: I have to receive strings from the port.
Single characters would be ok as well. It has to be done with polling
and not with messaging, which also should be easier. Is there a buffer I
can read from? If yes, is it also possible to clear that buffer?
I want to write my own class with these three methods. It would be great
if somebody could give me some help, because I'm not that experienced in
this.
Thanks a lot
Daniel
port communication with the following requirements:
- Port initialization: baudrate, parity, etc.
- Writing to port: I have to write strings to the port.
- Receiving from the port: I have to receive strings from the port.
Single characters would be ok as well. It has to be done with polling
and not with messaging, which also should be easier. Is there a buffer I
can read from? If yes, is it also possible to clear that buffer?
I want to write my own class with these three methods. It would be great
if somebody could give me some help, because I'm not that experienced in
this.
Thanks a lot
Daniel