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字符串。

原文地址:https://www.cnblogs.com/dust-fly/p/3670615.html