I'm new to C++ and I need help figuring out how to send information to the rs232 port. It's going to be one way communication (PC to device). I've tried reading other tutorials, but none of them clearly explain what's going on in each part, so I often get lost. Could some write up a simple example of sending a single byte of data and show where you set up the baud rate and other stuff. Also what's the best way to produce a time delay in C++?
Also I'm trying to create the program for both windows and Linux, so if you can, I'd appreciate it if you can show an example for both OS.