刚才没有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)
出错信息如下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)
UINT CNodeThread::SendFrame(LPVOID pParam)
{ return 0;
}
UINT CNodeThread::SendFrame(LPVOID pParam)前加STATIC试试
中删掉
吧UINT SendFrame(LPVOID pParam)做成一个全局函数
就可以通过编译了!!CNoteThread是从CWinApp中派生出来的用户线程类
难道线程控制函数SendFrame()不能作为用户线程类的成员函数吗?