Looking for a function that converts UINT to a char and then back to a UINT.
<BR>
void CGridCtrl::OnCharDown(UINT *vcKey,BOOL processed)
<BR>
Need to change all character key presses to uppercase ini the OnCharDown.
Printable View
Looking for a function that converts UINT to a char and then back to a UINT.
<BR>
void CGridCtrl::OnCharDown(UINT *vcKey,BOOL processed)
<BR>
Need to change all character key presses to uppercase ini the OnCharDown.
It's very simple:
char c;
UINT u;
c = (char)u;
believe there is a ultoa or ltoa function who will do that
You don't need a function, just cast between the two:
UINT foo;
char bar = static_cast<char>(foo);
Dave
> believe there is a ultoa or ltoa function who will do that
You believe wrongly.
ltoa (ultoa) will convert a (unsigned) long integer to a string.
Dave