faint!为memcpy()郁闷了一个上午
ptemp=(BYTE*)pszRead; //pszRead为char* size=sizeof(STUDENTSTRUCT_HEAD)+headTemp.m_nImgWidth; //STUDENTSTRUCT_HEAD为结构,headTemp为此结构实例,m_nImgWidth为此结构长度
memcpy(m_pic,ptemp,size); //拷贝一块信息(二进制)到BYTE* m_pic中
为什么memcpy时出现unhandled exception?