Create a thread in a class
Posted on 1997-11-04
I am using VC++5.0 in NT.
I want to create a thread in a class when a public function of this class is called. The start address of this thread is one of the member function of this class. Like this:
::CreateThread(..., ThreadRountine, ...);
But I fail to compile this code. Only when the ThreadRountine is a global function, then it is OK.
Is this doable or I miss something here ?
Thanks in advance.