一个编译错误,大家帮忙看看
......
if (hReadThread = CreateThread (NULL, 0, ReadPortThread, 0, 0, &dwThreadID))
......
DWORD CSerial::ReadPortThread(LPVOID lpvoid)
出现编译错误:
error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (void *)' to 'unsigned long (__cdecl *)(void *)'
None of the functions with this name in scope match the target type
请问该如何修改?