J
Joseph Lu
Hi, I have a multithread problem like the following lines, when I compile
this code I caught a "error C2665", the error description is : none of the
number1 overloads can convert parameter number2 from type 'type'
//-----------------------------
UINT ReadDatFile(int i_thread)
{
AfxMessageBox(i_thread);
return 0;
}
// CReadDatFilesView ÏûÏ¢´¦Àí³ÌÐò
void CReadDatFilesView::OnBnClickedReadfile()
{
// TODO: ÔÚ´ËÌí¼Ó¿Ø¼þ֪ͨ´¦Àí³ÌÐò´úÂë
UpdateData();
int i_threadnum;
for(i_threadnum=1;i_threadnum<=m_maxthreadnum;i_threadnum++)
{
AfxBeginThread(ReadDatFile(i_threadnum),GetSafeHwnd(),THREAD_PRIORITY_NORMAL);
}
}
//------------------------------
Could anybody tell me why? Thanks in advance!
Joseph
this code I caught a "error C2665", the error description is : none of the
number1 overloads can convert parameter number2 from type 'type'
//-----------------------------
UINT ReadDatFile(int i_thread)
{
AfxMessageBox(i_thread);
return 0;
}
// CReadDatFilesView ÏûÏ¢´¦Àí³ÌÐò
void CReadDatFilesView::OnBnClickedReadfile()
{
// TODO: ÔÚ´ËÌí¼Ó¿Ø¼þ֪ͨ´¦Àí³ÌÐò´úÂë
UpdateData();
int i_threadnum;
for(i_threadnum=1;i_threadnum<=m_maxthreadnum;i_threadnum++)
{
AfxBeginThread(ReadDatFile(i_threadnum),GetSafeHwnd(),THREAD_PRIORITY_NORMAL);
}
}
//------------------------------
Could anybody tell me why? Thanks in advance!
Joseph