|
-
June 29th, 1999, 07:30 PM
#1
UINT to Char
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.
-
June 29th, 1999, 07:40 PM
#2
Re: UINT to Char
It's very simple:
char c;
UINT u;
c = (char)u;
-
July 1st, 1999, 06:42 AM
#3
Re: UINT to Char
believe there is a ultoa or ltoa function who will do that
-
July 1st, 1999, 07:19 AM
#4
Re: UINT to Char
You don't need a function, just cast between the two:
UINT foo;
char bar = static_cast<char>(foo);
Dave
-
July 1st, 1999, 07:24 AM
#5
Re: UINT to Char
> 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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|