I've got a typical thread (DWORD WINAPI threadname) running from CreateThread() (I used the tutorial in the FAQ).
However, I honestly don't see the purpose of threading if the thread can't communicate with the main program. How can I get the value of what the thread returns, or, what a thread sets?
Any help will be greatly appreciated.
Thanks in advance,