wince与pc建立连接后,pc将图片的二进制数据发送至wince,请问wince应如何显示,代码怎样继续往下写?
DataPacket date;
Other other;
Photo photo;
Finger finger;
//定义缓冲区
char buffer[BUFFER_SIZE];
//接收数据
int nReceived = m_pSocket->Receive(buffer,BUFFER_SIZE,0);
memcpy(&date,buffer,sizeof(date));
int count = date.count;
other = date.other;
photo = date.photo;
finger = date.finger;
//将数据在列表框中显示出来
CString str1;
str1.Format("%s",other.Name);
m_ctrlMsgs.AddString(str1);
CString str2;
str2.Format("%s",other.SFZ);
m_ctrlMsgs.AddString(str2);
CString str3;
str3.Format("%s",other.CarType);
m_ctrlMsgs.AddString(str3);
其中,photo和finger存储二进制信息
------解决思路----------------------
通过数据构建bmp,这样就有办法显示了。