Jul 20, 2003 #1 onon Programmer Joined Jul 20, 2003 Messages 1 Location 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!
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!
Jul 29, 2003 #2 hipot Programmer Joined Feb 20, 2003 Messages 1 Location US For NT, try CreateFile("COM1",...) and then WriteFile and ReadFile on the handle. Upvote 0 Downvote
Jul 30, 2003 #3 kenon Programmer Joined Jul 30, 2003 Messages 5 Location RU You'd better use special class. You can take it from "CodeProject" Upvote 0 Downvote