初学VC线程,为什么我在应用这样函数void _stdcall CFileServerDlg::myfunc(void * ch)
{
m_Progress.ShowWindow(TRUE);
m_Progress.SetPos(0);
m_Progress.SetRange(0,nStepLong);
for( int i=0 ; i <= nStepLong ; i++ ){
    m_Progress.StepIt();
} m_Progress.ShowWindow(FALSE); _endthread
}
 _theadH = _beginthread(myfunc,0,NULL);
可是每次出现这样的错误提示 F:\VC_learn\socket\fileServer\fileServerDlg.cpp(231) : error C2664: '_beginthread' : cannot convert parameter 1 from 'void (void *)' to 'void (__cdecl *)(void *)'
        None of the functions with this name in scope match the target type
帮忙呀。