static DWORD WINAPI thread_func(LPVOID instance);
将this指针传给instance
(CClassName *)pThis = (CClassName *)instance;
然后在线程函数中使用pThis代替this。(静态成员函数无法直接使用this指针)
static DWORD WINAPI thread_func(LPVOID instance);
将this指针传给instance
(CClassName *)pThis = (CClassName *)instance;
然后在线程函数中使用pThis代替this。(静态成员函数无法直接使用this指针)