麻烦看看这~~线程~~问题~~~谢谢
无魂冬冬 2012-11-18 04:49:32 我想让线程调用类中的其他函数,可这么高有错误~~
求~~大神~~help
#include <IOSTREAM>
#include <WINDOWS.H>
using namespace std;
class a
{
static DWORD WINAPI ThreadFunc(LPVOID pvoid)
{
return 0;
}
};
int main()
{
a a1;
HANDLE hrecvThread;
hrecvThread = CreateThread(NULL, 0,ThreadFunc, NULL, 0, NULL );
return 0;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
error C2065: 'ThreadFunc' : undeclared identifier