Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Main Function and Dialog running simultaneously
#2
I would use a global variable like in your code.
Could use a local variable and pass its address, but it is dangerous, because the first thread may exit first.
In C++ could use a reference-counted variable with InterlockedIncrement/InterlockedDecrement, but in QM it is difficult.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)