Hello
The SetDlgItemText() function takes in a LPCTSTR datatype as one of its arguments.
I was just curious how to convert an integer into this datatype.
Thanks in advance!
Hello
The SetDlgItemText() function takes in a LPCTSTR datatype as one of its arguments.
I was just curious how to convert an integer into this datatype.
Thanks in advance!
You could use SetDlgItemInt()
or
convert to a string or char array.
Code:char szBuf[MAX_PATH]={0}; _snprintf(szBuf, MAX_PATH-1,"%d",iValueToBeDisplayed); SetDlgItemText(hWnd, ID_EDIT,szBuf);
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill