佚名通过本文主要向大家介绍了vs2005,vs2005中文版下载,vs2005破解版下载,vs2005官方免费下载,vs2005下载等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 使用VS2005得新编写vc++的代码时出现下面错误,求解
描述:
解决方案1:
描述:
错误 1 error C2664: “std::basic_istream<_Elem,_Traits>::read”: 不能将参数 1 从“unsigned char [1]”转换为“char *” e:\kenny\project code\imagestitch\imagestitchcomponent\imagestitchclass.cpp 57
解决方案1:
temp- >width = (DWORD)ch[0] + (DWORD)ch[1]<<8 + (DWORD)ch[2]<<16 + (DWORD)ch[3]<<24;
解决方案2: for(i=0;i <18;i++)//刚开始的18字节跳过
{
ifile.read((char*)ch,1);//不能用ifile > >操作,因为这样不能读入所有的ASCII码
}
强制类型转换(char *)
解决方案4:(char *)