ok, well, I have been playing and having fun with this console app and it works great, now I have hit my next challenge,
Dialog based app, and running a continous feed from the port to my application.
So my question, is....
As a newbie, should I face the fact that I will now need to try and tackle creating a multi-thread app, the main and the one that runs the serial port monitor and returns message to main?
are there other methods to updating a variable embedded in a dialog of this sort that I can update to screen while the dialog runs other functions?
so far my attempts have created an endless loop program that gets stuck monitoring the port and never reacts to the dialog window again.
This is more of an advice request, I know this is a very general question, just want to get an idea of how to direct my research attempts to best fit this next problem, concerned threads may be too deep for me at this point.....
The general approach is - to have a thread for the GUI and thread for serial communication (or two separate threads for reading/writing - depending on your needs)
And then apply some mechanism of the thread communication when the data arrived should be displayed by the GUI thread (for example ThreadSendMessage)
well cool, time to start reading on that. I appreciate the info. Thanks again for the las example you sent by the way and to bob who sent that really cool code. Both helped alot.
Time to start learning threads! Thanks everyone. I will do my best to stop this thread, ha ha. Thanks again for all the help-