I've been looking around the net for some way to receive/transmit data with serial port using c++, so far i've found code for old way of using serial (without VS) or using VS2008 but with C#. anyone know any good sites for implementing serial communication
using VS 2008?
-
-
There may be some c++ librariers out there but you could resort to the Win32 API to do it:
Here's an article on it. It's rather old but I bet it still applies:
http://msdn.microsoft.com/en-us/library/ms810467.aspx -
What i find weird is that i cannot find C++ example for serialport, only C# and visual basic, anyone know why that is?
-
Because most people that wrote any C++ code to access the serial port did so years ago in a commercial app where they can't release code and probably used the C-based Win32 API anyways?Hyperian said:What i find weird is that i cannot find C++ example for serialport, only C# and visual basic, anyone know why that is? -
Hope this can help :
http://www.robbayer.com/files/serial-win.pdf
EDIT: I've just realise that DCMonkey already post the same code
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.