I'm creating a thread like this:
m_hMyThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) MyThProc, (LPVOID*) this, 0, &dwThreadID);
Later on, I'm waiting on this thread to finish, with this:
It seems to be deadlocked. Is this because this just won't work? Or is it because something else in my code somewhere is likely deadlocking?