467,877 Members | 1,226 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,877 developers. It's quick & easy.

International Characters in an Edit Control

Hello everyone!

OK, I'm writing a windows program that requires the user to enter
Cyrillic characters into an Edit control.

But, I can't seem to get the Cyrillic characters to appear in the Edit
Control... I get underscores '_'

I know the cyrillic keyboard works... I use it in word programs, and
other apps...

No doubt this problem would occur with any non-english character set...
Does anyone know of any decent, free, resources that will teach me how
to do this? Is there some style attribute I need to add to the edit
control to allow international characters?

Iv'e been playing around with putting this code at the start of the
program:

#define _UNICODE
#include <tchar.h>
#include <wchar.h>

#define UNICODE
#include <windows.h>

// and changing text strings to WCHAR, or TCHAR (tried both)

But it doesn't make much difference. Does UNICODE have anything to do
with it at all? can it be done without UNICODE? Do I strike you as
someone who doesn't really know what UNICODE is? If so please tell me!

So, anyway, if anyone out there has ever had to type non-english
character sets into and Edit Control, and has a simple and obvious
solution, I'd be most grateful to hear from you.

Apr 23 '06 #1
  • viewed: 1916
Share:
2 Replies

Mick_fae_Glesga wrote:
Hello everyone!

OK, I'm writing a windows program that requires the user to enter
Cyrillic characters into an Edit control.

But, I can't seem to get the Cyrillic characters to appear in the Edit
Control... I get underscores '_'

I know the cyrillic keyboard works... I use it in word programs, and
other apps...

No doubt this problem would occur with any non-english character set...
Does anyone know of any decent, free, resources that will teach me how
to do this? Is there some style attribute I need to add to the edit
control to allow international characters?

Iv'e been playing around with putting this code at the start of the
program:

#define _UNICODE
#include <tchar.h>
#include <wchar.h>

#define UNICODE
#include <windows.h>

// and changing text strings to WCHAR, or TCHAR (tried both)

But it doesn't make much difference. Does UNICODE have anything to do
with it at all? can it be done without UNICODE? Do I strike you as
someone who doesn't really know what UNICODE is? If so please tell me!

So, anyway, if anyone out there has ever had to type non-english
character sets into and Edit Control, and has a simple and obvious
solution, I'd be most grateful to hear from you.

This newsgroups discusses mainly Standard C++ issues, so I think you
might get a better response from the guys at
microsoft.public.vc.language

[OT]
Why don't you check the font? (Don't tell me the result, just post at
the mentioned newsgroup, please)
[/OT]

Abdo Haji-Ali
Programmer
In|Framez

Apr 23 '06 #2
Ok, I'll check the microsoft dealy... thaks

Apr 23 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ruslan Popov | last post: by
6 posts views Thread by MrNobody | last post: by
1 post views Thread by Andreas R. | last post: by
2 posts views Thread by Alain | last post: by
1 post views Thread by Peter K | last post: by
reply views Thread by Elmo Watson | last post: by
reply views Thread by jack112 | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.