sprintf

Hi,
My intension to copying word value in its hex code format in to a TCHAR array
Please help me to correct the following code.Finally i need an output of 90 (Hex of 144) in Slabel
1
2
3
WORD wNum=144;
TCHAR Slabel[7]="";
sprintf(Slabel,"%05X",wNum);
Last edited on
Not tested it but shouldn't it be _stprintf for TCHAR ?
Last edited on
Ok.I will try tat one
Topic archived. No new replies allowed.