Click to See Complete Forum and Search --> : UINT to Char
Ron Kjelden
June 29th, 1999, 07:30 PM
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.
John Doenut
June 29th, 1999, 07:40 PM
It's very simple:
char c;
UINT u;
c = (char)u;
believe there is a ultoa or ltoa function who will do that
Dave Lorde
July 1st, 1999, 07:19 AM
You don't need a function, just cast between the two:
UINT foo;
char bar = static_cast<char>(foo);
Dave
Dave Lorde
July 1st, 1999, 07:24 AM
> 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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.