std::ifstream ifs 读取dib文件头信息
ifstream ifs(lpszFileName);
DWORD dwFileSize;
//dwFileSize= ifs.GetLength();// 获取文件大小
BITMAPFILEHEADER bmfHeader;
if (ifs.read ((LPSTR)&bmfHeader, sizeof(bmfHeader)) != sizeof(bmfHeader))// 读取DIB文件头 //出错
{
return NULL;// 大小不一致,返回NULL。
}
Error 1 error C2679: binary '!=' : no operator found which takes a right-hand operand of type 'unsigned int' (or there is no acceptable conversion)
求高手解答,在线等