I searched google for this a couple of different times,rephrasing my search query. I have an int variable and need to display it on a window. I know there is a way you can format the variable so you can pass it to the TextOut function. I was wondering if anybody knew how to format the variable so TextOut will accept it? I tried this code but it doesn't display it, it compiles though:
clicks is my int variable and x and y are the position. That code compiles but it doesn't show the variable on the window?Code:TextOut(hDC,x,y,(LPCTSTR)clicks,2);
A different way is acceptable as well. Thanks.