if(CloseHandle(handlePort_) == 0) // 调用该函数关闭串口 { AfxMessageBox("Port Closeing isn''t successed."); return FALSE; }