|
Serial Communications
Hi, I'm using VC++ to create a program to communicate with a serial device. The program sends and recieves ASCII data, and the terminal it sends this data to has 3 lines, 20 characters per line. My problem is that I have no clue how to transfer data to lines 2 or 3. I need to know how to program an option (much like the one in Hyperterminal) that allows you to send line ends with line feeds.
The program I'm making now uses a custom command called SioPuts (a,b,c) where a is the port #, b is the string to send, and c is the total number of bytes.
Does anyone know how I would go about doing this? I frankly am not a very good programmer (just got started not too long ago) and am having to adapt purchased source codes to fit this project. Since these codes don't include the option to send line ends I'm not sure how to go about doing it.
|