Serial port rs232 start to develop

Hi,

Now I am searching for serial rs232 in c++. I found many things, but in fact, nothing ready for my use.

All I know yet is that I want to develop under Netbeans and use c++. If it is possible I want a code that can be compiled both under windows and linux. It is required that I do develop under windows XP, no more win 98 (no more inport and outport, from dos.h).

I do read many many things about inport and outport and some sites says that inport and outport do only work for win98, they are "old". The codes that I see(the ones using inport and outport) seems easy to understand.

And my question is: What is the modern way to led with serial port? What is the library that I need to use. What are the "new" commands similar to inport and outport and what is the similar to "dos.h"?

It is easy to develop to serial port under linux? I am a Slackware user, so linux is not a problem to me.

Any help will be appreciable.
Last edited on
you must find on youtube about rs232.really helpful
Topic archived. No new replies allowed.