关于多线程?
我想在一个类的成员函数中启动一个工作者线程,这个工作者线程所用的函数是这个类的另一个成员函数,在编译时出现以下错误提示:E:\MICROSOFT VISUAL STUDIO\MYPROJECTS\Engine\Engine.cpp(70) : error C2440: 'type cast' : cannot convert from '' to 'unsigned int (__cdecl *)(void *)'
None of the functions with this name in scope match the target type
原程序大致如下:
BOOL CEngine::StartRender()
{
CWinThread* pRenderThread=NULL;
pRenderThread=AfxBeginThread((AFX_THREADPROC)Render,NULL);
return TRUE;
}
UINT CEngine::Render(LPVOID pParam);
请问这是为什么?