很简单的线程调用出错的问题,解决立刻给分,谢谢
调用
if(dlg.DoModal()==IDOK)
{
m_sGetPath=dlg.GetPathName();
UpdateData(FALSE);
AfxBeginThread(SendDataThread,this,THREAD_PRIORITY_NORMAL);
}
线程函数
UINT SendDataThread(LPVOID lpParam)
{
return 0;
}
错误提示
D:\sockettest\host\hostDlg.cpp(477) : error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)'