Re: how to pass data ie (from main thread which have dialog ) to another thread
Do you want to pass this data as a reference? ie do you want the dialog and the other thread to both be able to change the same data?
If not, just make a copy and pass the copy to the thread. Then you have no headaches about mutexes etc.
Otherwise, use pointers and mutexes.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Bookmarks