像素有值,我觉得可能是在读到buff放到全局变量的部分出了问题,在指针赋值后删掉了指针,这片内存区域就空了。应该用memcpy,但是这个指针的长度如何获得呢。memcpy(pRaw[uCount],lpdata,strlen(lpdata));我是这么写的,但是提示 error C2664: 'strlen' : cannot convert parameter 1 from 'unsigned short *' to 'const char *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast