在纯win32 api下把数字转换成字符串是比较麻烦的,一下是方法
hdc=GetDC(hWnd);
WORD gb=100;
TCHAR haode[10];
LPCTSTR made;
le=swprintf(haode,L"%d",gb);
made=haode;
TextOut(hdc,0,0, made,le);
::ReleaseDC(hWnd,hdc);
最关键的就是红色部分,注意swprintf第一个参数要是一个数组。