Pitufo
October 3rd, 2008, 11:44 AM
Hi does anyone here know how to read from a serial port using c++?
I just got this got from the internet but it doesnt work:
CSerial serial;
if (serial.Open(2, 9600))
AfxMessageBox("Port opened successfully");
else
AfxMessageBox("Failed to open port!");
Andres is online now Add to Andres's Reputation Edit/Delete Message
I just got this got from the internet but it doesnt work:
CSerial serial;
if (serial.Open(2, 9600))
AfxMessageBox("Port opened successfully");
else
AfxMessageBox("Failed to open port!");
Andres is online now Add to Andres's Reputation Edit/Delete Message