【发布时间】:2009-08-11 11:34:32
【问题描述】:
如何创建静态成员函数的线程例程
class Blah
{
static void WINAPI Start();
};
// ..
// ...
// ....
hThread = (HANDLE)_beginthreadex(NULL, 0, CBlah::Start, NULL, NULL, NULL);
这给了我以下错误:
***error C2664: '_beginthreadex' : cannot convert parameter 3 from 'void (void)' to 'unsigned int (__stdcall *)(void *)'***
我做错了什么?
【问题讨论】:
标签: c++ function static multithreading member