How can I take a value > 255 (greater then one byte)
and display it as a one byte character in a edit control?
e.g. 274 equates to

The above example will display in a RichEdit V3 edit control when you
hold the Alt key down and then press the 0, 2, 7, and 4 keys on the
Numpad and then release the Alt key.

I would like to do the same thing in my edit control.

Do I need to convert it unicode or DBCS and then how do I display it.

Thanks for any help,

Posted on 2003-09-05 23:40:17 by Ewayne
there are only 256 charactors 0 - 255 0 equalling a value anything higher cannot be one byte.. simple as that.

EDIT: i looked at the char map and it goes up to FFFF for its chars and the E your talking about is also value 0112...

EDIT AGAIN:: I tryed the 0112 even though the char map says its your it its p accordind to it... well anyway you cant display 274 in a single byte...

EDIT AGAIN AND AGAIN: The char map also goes by HEX so your 274 is decimal and the hex for that is 112 and in the char map it shows up as 112 but in decimal is 274 and thats how the alt imput is taken.
Posted on 2003-09-06 00:35:55 by devilsclaw
back in the 16 bit days they had a hard time supporting langs like japanies but with this new implimentation supporting the other langs that have over 256 charactors is much easyer and must be one of the reason why its able to take in two bytes as a symbol
Posted on 2003-09-06 00:57:57 by devilsclaw
Ketil should be able to answer this question, RadASM supports DBCS. Maybe PM him with your question to make sure he sees it. I think you have only to select a DBCS font into the DC of the edit control to enable DBCS.
Posted on 2003-09-06 01:07:59 by donkey
To devilsclaw,

Yes I know all of that stuff, I didn't mean to imply
turning two bytes into one byte.

I meant to take two bytes and display it as one byte.

To donkey,

My AsmEdit V4.7 also handles DBCS and can display
character sets like Chinese, ect.

But I want to use an English character set font and
display the character from Alt + >255.

Posted on 2003-09-06 10:06:20 by Ewayne
You mean unicode?
Posted on 2003-09-06 16:46:06 by iblis
I think you have to go Unicode, I tried to use the ALT-1234 thing using notepad on a Win2K system and it replied that I had to save as Unicode:
Posted on 2003-09-06 18:14:01 by donkey
To donkey and the rest;

Thanks for the feedback.

I hate the thought of making my edit control unicode
capable just to do the Alt + Numpad > 255 function.

I'm going to play around to see if I can create a unicode

Posted on 2003-09-06 20:48:43 by Ewayne