当前位置: 代码迷 >> WinCE >> 急求 wince 6.0 读取数据库2进制源图片显示到picturecontrl上
  详细解决方案

急求 wince 6.0 读取数据库2进制源图片显示到picturecontrl上

热度:213   发布时间:2016-04-28 11:55:13.0
急求 wince 6.0 读取数据库2进制流图片显示到picturecontrl上
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,这样就有办法显示了。
  相关解决方案