刚开始没这些问题,断电后 代码没保存,启动恢复 然后编译!错误 4 error C3646: “SOCKET_Select”: 未知重写说明符 d:\Work\项目二\VedioPlayer\VedioPlayer\Client.cpp 5
错误 3 error C3646: “BOOL”: 未知重写说明符 d:\Work\项目二\VedioPlayer\VedioPlayer\Client.cpp 5
错误 7 error C2660: “SOCKET_Select”: 函数不接受 1 个参数 d:\Work\项目二\VedioPlayer\VedioPlayer\Client.cpp 75
错误 6 error C2440: “return”: 无法从“bool”转换为“BOOL (__cdecl *)(SOCKET,int,BOOL)” d:\Work\项目二\VedioPlayer\VedioPlayer\Client.cpp 30
错误 1 error C2143: 语法错误 : 缺少“;”(在“<class-head>”的前面) d:\work\项目二\vedioplayer\vedioplayer\hbsdk\T1800.h 80
错误 5 error C2091: 函数返回函数 d:\Work\项目二\VedioPlayer\VedioPlayer\Client.cpp 6
这个函数声明是在另外一个头文件中。  这些错误是什么意思哦!语法错误 : 缺少“;”(在“<class-head>”的前面)   这个指向的错误是绝对不会存在的。他指向的地方保证没有任何问题主要报错的地方BOOL SOCKET_Select(SOCKET hSocket, int nTimeOut, BOOL bRead)
{
fd_set fdset;
timeval tv;
FD_ZERO(&fdset);
FD_SET(hSocket, &fdset);
nTimeOut = nTimeOut > 1000 ? 1000 : nTimeOut;
tv.tv_sec  = 0;
tv.tv_usec = nTimeOut; int iRet = 0;
if ( bRead ) 
{
iRet = select(0, &fdset, NULL , NULL, &tv);
}
else
{
iRet = select(0, NULL , &fdset, NULL, &tv);
} if(iRet <= 0) 
{
return FALSE;
} else if (FD_ISSET(hSocket, &fdset))
{
return TRUE;
}
return FALSE;
}
完全没整懂,这个是什么原因引起的!!