Wednesday, May 31, 2017

Programming serial port in C++ with wxWidgets for Windows and Linux

We would like to present a class library 'serial.h' developed by us to use serial port (com port) on both Windows and Linux. This cross-platform 'Serial' class is written in C++. A simple example for C++ console program is demonstrated. Using it with wxWidgets for GUI application is also presented. The source code can be found at

https://github.com/yan9a/serial


Figure. A wxWidgets GUI application using 'Serial' class with Visual Studio 2017