int型转LPCWSTR在MessageBox上显示

int sizeLight = sizeof(LightStruct);
wchar_t bufferT[256];
wsprintfW(bufferT,L"%d",sizeLight);
MessageBox(NULL,bufferT,bufferT,MB_OK);

 

其中:LPCWSTR:      typedef const wchar_t* LPCWSTR   An LPCWSTR is a 32-bit pointer to a constant string of 16-bit...4字节的指针,指向2字节的constant字符串。

 

posted @ 2014-04-17 14:06  dust_fly  阅读(565)  评论(0编辑  收藏  举报