First of all, I cannot find out what does 'string^' mean. Being from a purely C background (electronic engineer), I know that we can use char[] in C and 'string' in C++/C#/VB. However, the caret symbol in 'string^' has completely taken me by surprise. What is this???
This program uses multithreading through 'using namespace System::Threading;
'. Why does this program need multiple threads??? What if we are only reading or only writing?
I know of the C++ operator 'new' but what in the world is 'gcnew'???
Finally, on my laptop there is no serial port. I shall be using a USB-RS232 converter for this purpose. How does the program need to be modified to accomodate that?
If you're from a C background and would rather avoid .NET you could use the old-school WinAPI approach to handling serial ports: CreateFile, WriteFile, ReadFile, etc.