I'm attempting to open serial communication between my computer and an Arduino Uno microcontroller.
I was hoping whether someone could provide an explanation (or a link to an explanation) for multi-threaded processes and event-driven programming. It has to be for complete noobs. I need to know the following things:
- What an event is.
- How to monitor for an event
- How to create a thread
- Explanation of what the Overlapped structure is
- What waitForSingleObject does
It is rather good but it whizes past all this stuff because I suppose it assumes one already knows.
All I want to do (at the superficial level) is set an "actionListener" only once which will call a function to process my data when data arrives. (I am an not newbie but still beginner C++ programmer coming from java)
I attempted to do communication without setting up a new thread and event but I am still experiencing an error. I send one byte of data (an '8') but my program prints two "8"'s.
Here are the applicable parts of my program: