Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Serial Port Programming with C/C++

Status
Not open for further replies.

deanlwvu

Technical User
Jul 23, 2003
25
0
0
US
I am wondering how to get I/O with a serial port in C or C++. All I need is to read incoming data, which is already working. I am currently using the BIOSCOM functions, but that does not work because I am using RS485 instead of RS232. The program works with RS232. What's the easiest/simplest way to do this?

Thanks,
DFL
 
hi,
i guess that the header file is called dos.h
and you can use inportb and outportb.
i did that as a student and it works fine but you got to use interrupt functions.
hope it ll help you
---------------------------

B-) day or night? don t care
 
I am yet to program a windows terminal program for the serial interface. Currently learning Visual Studio.NET and teaching myself what to do with the serial interfaces.

I will post my future findings in this forum.
 
Yeah, I'm aware of all of that. I have a lot to learn before I ever implement serial interfacing with .NET. I appreciate the input though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top