刚才没有paste完整 
出错信息如下Compiling...
NodeThread.cpp
F:\hcz\lin\sw\NodeThread.cpp(86) : 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
Error executing cl.exe.sw.exe - 1 error(s), 0 warning(s)

解决方案 »

  1.   

    CWinThread* p=(CWinThread *)AfxBeginThread((AFX_THREADPROC)endFrame,this);endFrame高错了!!!!!是SendFrame
    UINT CNodeThread::SendFrame(LPVOID pParam)
    {        return 0;
    }
      

  2.   


    UINT CNodeThread::SendFrame(LPVOID pParam)前加STATIC试试
      

  3.   

    头文件的声明加上static了没有?回调函数需要加此关键字
      

  4.   

    static UINT WINAPI SendFrame(LPVOID pParam)
      

  5.   

    今天我把UINT CNodeThread::SendFrame(LPVOID pParam)这个函数从CNoteThread
    中删掉
    吧UINT SendFrame(LPVOID pParam)做成一个全局函数
    就可以通过编译了!!CNoteThread是从CWinApp中派生出来的用户线程类
    难道线程控制函数SendFrame()不能作为用户线程类的成员函数吗?