C
Chris LaJoie
The code below creates a thread on a global function (ReadChildOutput):
CreateThread(NULL, 0, ReadChildOutput, (LPVOID)this, 0, &ThreadId);
How would I create a thread on a non-global function, assuming the
ReadChildOutput function were in the current class. This code illustrates
what I mean, but does not compile.
CreateThread(NULL, 0, this->ReadChildOutput, NULL, 0, &ThreadId);
Thanks,
Chris
CreateThread(NULL, 0, ReadChildOutput, (LPVOID)this, 0, &ThreadId);
How would I create a thread on a non-global function, assuming the
ReadChildOutput function were in the current class. This code illustrates
what I mean, but does not compile.
CreateThread(NULL, 0, this->ReadChildOutput, NULL, 0, &ThreadId);
Thanks,
Chris