The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Guenther on December 20, 2011, 06:49:58 PM

Title: SetDlgItemText - How can i show a string with greek letters in an EditBox
Post by: Guenther on December 20, 2011, 06:49:58 PM
Hello!

I want to show a string with Greek letters in an EditBox.

If I take the MessageBox - API, i only need to add a "W": MessageBoxW. Then I can see the string in a MessageBox.

But if i take the SetDlgItemText - API, a string with very strange characters is shown in the EditBox. The function shows instead of a Greek character two other Ascii-characters. And if i add an "W", then some Questionmarks are shown: "??????". The EditBox was created with a resource by the command "EDITTEXT".

Is there a possibility to show Greek characters in an EditBox?

Regards, Guenther
Title: Re: SetDlgItemText - How can i show a string with greek letters in an EditBox
Post by: bomz on December 20, 2011, 06:52:28 PM
may be install Greek codepage in Windows

Cyrillic
(http://s2.ipicture.ru/uploads/20111220/bkZfO1p7.png)
Title: Re: SetDlgItemText - How can i show a string with greek letters in an EditBox
Post by: jj2007 on December 20, 2011, 07:15:48 PM
We had a Unicode in edit window thread (http://www.masm32.com/board/index.php?topic=14448.msg115970#msg115970) some time ago. Open the source, and search for hEdit.
Title: Re: SetDlgItemText - How can i show a string with greek letters in an EditBox
Post by: Guenther on December 20, 2011, 07:45:21 PM
Thanks!!!