The MASM Forum Archive 2004 to 2012
Welcome, Guest. Please login or register.
March 23, 2023, 09:06:43 AM

Login with username, password and session length
Search:     Advanced search
128553 Posts in 15254 Topics by 684 Members
Latest Member: mottt
* Home Help Search Login Register
+  The MASM Forum Archive 2004 to 2012
|-+  General Forums
| |-+  The Laboratory (Moderator: Mark_Larson)
| | |-+  Unicode in Quick Editor?
« previous next »
Pages: 1 [2] Print
Author Topic: Unicode in Quick Editor?  (Read 11368 times)
Posts: 169

Re: Unicode in Quick Editor?
« Reply #15 on: December 16, 2009, 08:35:48 AM »

The charset isnt 'just' char-null.. I've attached the PDF i found which outlines Cyrillic (they're hex values) and i've also attached a simple example (WinASM project) which uses the widestring variant of API to display a dialog and change its title text. It is worth noting though that i havent used the string in resources, instead hardcoding it into the data section with each char as a hexadecimal word.

With my system set to English (US) i get the Russian chars and with it set to Russian i get the same. I think if you were to use this approach, you would need to let the user set the language and then update the strings used by the application? Dunno, im pretty much agreeing with Dave, if my knowledge of the Russian language were dynamite, it wouldnt be enough to even mess my hair up.


* (243 KB - downloaded 406 times.)
* (2.52 KB - downloaded 346 times.)
Posts: 560

Please use a non offensive avatar

Re: Unicode in Quick Editor?
« Reply #16 on: December 16, 2009, 09:00:20 AM »

i think WideChar is all character.
if you need display or input all the WideChar character, you need install all fonts.

* (13.32 KB - downloaded 317 times.)
Gender: Male
Posts: 6011

Re: Unicode in Quick Editor?
« Reply #17 on: December 16, 2009, 09:33:33 AM »

An ANSI riched edit 2 control will display east asian fonts, you just cannot type them in or save them.

It displays Arabic and Russian, it saves Arabic and Russian, and the plain text Unicode file that RichMasm writes to the *.rc file contains Arabic and Russian, as can be verified by opening it in Ms Word.

And I am glad that I didn't hit the "Post" button right away, because I just relaunched the ResDlgMb.asm on my desktop and voilą, the bloody dialog displays Arabic and Russian...!!

Mysteries of Windows. On my notebook, everything displays Arabic except that dialog...

EDIT: One mystery solved. To display Arabic, check "Install files for complex script and right-to-left languages" in Control Panel, Regional and Language Options, Languages. The remaining mystery is why afterwards Russian becomes visible, too -  not exactly a "complex script" language, and written from left to right. Oh Bill, if you had to pay for every hour wasted due to poor documentation, you would be a poor man green
« Last Edit: December 19, 2009, 10:02:22 PM by jj2007 » Logged

Pages: 1 [2] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP The MASM Forum Archive 2004 to 2012 | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!