线程创建问题,参数有误???????
hReadThread=CreateThread(NULL,0,ReadPortThread,0,0,NULL);
dwError=GetLastError();
if(hReadThread)
{
CString str;
str.Format(_T("CreateThread done NO.%d"),dwError);
MessageBox(str,TEXT("NOTE"),MB_OK);
}
MessageBox 可以显示,说明hReadThread不是NULL,但是GetLastError()得到的是87 参数错误,
为什么???