I have a problem connecting to any serial port (want to exchange with an Arduino) using c++ on visual studio.
I'm using the SerialClass given in the Arduino playground, but can't open an handle to my port. It throws ERROR_FILE_NOT_FOUND on every try..
I've been testing many other ways of notating the port:
"COM1"
"COM1:"
"\\.\COM1"
but nothing's working.
The port is availiable on the system, and working fine using Putty or the Arduino IDE. Additionally it isn't blocked by other processes.
I'm using Windows 7 x64, but project is Win32.
The class is constructed with
serialPort = new Serial((char*)port);
and the error string shows the right portname.
What I'm doing wrong?
File opening isn't working, too.
Qtand use the open sourcedQextSerialPortlibrary. I've had some VERY good success using it and it has a very small learning curve, considering most of the examples are easily c/p'able to what you're trying to accomplish. - g19fanatic