当前位置: 代码迷 >> WinCE >> EVC下将LPBYTE转换成LPWSTR,多谢
  详细解决方案

EVC下将LPBYTE转换成LPWSTR,多谢

热度:65   发布时间:2016-04-28 13:30:37.0
EVC下将LPBYTE转换成LPWSTR,谢谢!
LPBYTE   lpByte;
如何转化为LPWSTR类型呢?

------解决方案--------------------
temp=m_Ctrl.InsertItem(i,NameBuffer,ImageDWORD);
m_Ctrl.SetItemText (temp,1,_T( "REG_DWORD "));

strData.Format(_T( "%x "),*((LPDWORD)lpData));
while(strData.GetLength () <8)
strData= "0 "+strData;
swprintf(DataBuffer,_T( "0x%s(%ld) "),strData,*((LPDWORD)lpData));
m_Ctrl.SetItemText (temp,2,DataBuffer);