Hi,
I am trying to write a GUI app the main thread to add two numbers. and I want to add another thread to display a word on the same screen at the same time. Is that possible? I tried to use the documentation example but could not make it run.
http://docs.wxwidgets.org/3.0.4/classwx_thread.html
wxWidgets Multi threading
Re: wxWidgets Multi threading
Using the GUI in a secondary thread is can of worms. Don't do it. Instead, you can send messages from a thread to the main thread so as to display whatever you want.
The sample "thread" (at yourwxdir/samples/thread) is a good guidance in writting multithread apps in wxWidgets.
The sample "thread" (at yourwxdir/samples/thread) is a good guidance in writting multithread apps in wxWidgets.