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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to visit serial port COM1 under XP&NT?

Status
Not open for further replies.

onon

Programmer
Jul 20, 2003
1
US
I want to visit serial port COM1 under XP&NT using MS Visual C++,but it cannot be realized using _inp() and _outp().

Would you help me to figure out how to visit COM1 using Visual C++?

Thank you very much!
 
For NT, try CreateFile("COM1",...) and then WriteFile and ReadFile on the handle.
 
You'd better use special class.
You can take it from "CodeProject"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top