use of serial I/O port in C or C++

does anyone know how to access the serial port (COM1 or COM2) by using the Win32 API ? Using Visual C++ 5.0, which libraries and includes are needed?   is there any webpage explaining the procedure of handling the I/O port ? Or is there already a .dll existing, free to use?
Who is Participating?
nil_dibConnect With a Mentor Commented:
Look at 
this is probably the best site for serial communiction on W32 platforms (Terminal program + source also included). All the issues concerning serial communications are discussed and explaned there.
also take a look at (
for code to do serial communication
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.