我的线程函数是这样定义的:
UINT CMultiTaskingDoc::ThreadFunc(LPVOID pParam)
{
CSPinner* lpSpin = (CSPinner*)pParam;
BOOL* pbContinue = lpSpin->GetContinue(); while (*pbContinue)
// Spin the spinner
lpSpin->Draw(); return 0;
}我在类的一个内部的函数里调用的时候:m_pSpinThread[nIndex] = AfxBeginThread(ThreadFunc,(LPVOID)&m_cSpin[iSpnr],THREAD_PRIORITY_NORMAL,0,0);
其中 CWinThread *m_pSpinThread[2]; m_cSpin[iSpnr]是定义的一个类的实例。程序编译的时候提示上面那句话是错误的:
error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)'请问这个错误是怎么回事,怎样修改啊。