CTestView* pView= this;
CWinThread* pThread=AfxBeginThread(ResultDisplay,pView,THREAD_PRIORITY_NORMAL,0,0,CREATE_SUSPENDED);UINT CTestView:: ResultDisplay(LPVOID pParam)
{
......
}
H:\PROGRAMME\VC\Test\TestView.cpp(97) : error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)'

解决方案 »

  1.   

    ResultDisplay要声明为静态函数或外部函数
      

  2.   

    must add RUNTIME_CLASS macro,such as
    CMyThread * thread = AfxBeginThread(RUNTIME_CLASS(CMyThread),
                                        THREAD_PRIORITY_NORMAL,
                                        0, // stack size
                                        CREATE_SUSPENDED);for more details ,see
    www.codeproject.com/threads/usinguithreads.asp 
      

  3.   

    there is diffrence between work thread and UI thread ,you should check it
      

  4.   

    嗬嗬!
    ---------------------
    刚刚回答了一个这样的问题
    http://expert.csdn.net/Expert/topic/1544/1544976.xml?temp=.7773401
      

  5.   

    类成员函数实际上还有一个THIS的隐式参数!!!!!!!!
    只有ResultDisplay要声明为静态函数或外部函数,符合标准的线程函数类型
    UINT (void *)