Using the serial port is a bit interesting, but not terribly difficult once you understand how it works. If you just want a drop in solution, there are C++ classes for the serial port that are freely available on the web. As to the details...you create a file using CreateFile, use the file handle returned to set up the details of communication (baud rate, handshaking, etc.) with SetCommState (and SetCommTimeouts) then use WriteFile and ReadFile to retrieve the data from the port.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.