Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

arabic language programming in VC++? 1

Status
Not open for further replies.

lodhi

Programmer
Jul 14, 2002
11
PK
Dear All,


i am going to design an editor that will incorporate Arabic/urdu language. user will
be able to edit in urdu and arabic.i am using VC++ and unicode.

the problem is as follows:

as we do in normal editer we can get the ASCII code of each character. i want to do same
for the arabic code because i want to process the code behind the text. so please tell
me how can i do this.

i get the text in urdu from RichText edit control into
CString object using GetWindowText method. and when i write this
text again into the richtext edit box using SetWindowText it prints ? ? ? like
marks. please guide me what is the problem with it.


thanks in advance.

omar lodhi
 
It is a language pack/ input locale problem. See this post

thread116-256666
 
Dear Matt,

thanks for reply, this has solved my problem.
now please if you tell me further something.

what we have done is manual setting for incorporating a language.
can we do all this programmtically while user has installed the support for that language and we have to just set that language
as default as we have done it manually. can we check how many
language support is istalled in the Operating System.

one more thing
can we limit this selection to our appliction not the whole OS environment.
lodhi
 
I have not had to make an API call to find out what locale the computer is set to. I am sure there is some way to call this, I just dont know the exact API.

Matt
 
Dear Matt,

have you any knowldge about urdu unicode. MSDN says win2k does not
support urdu unicode fully. is there any way to bring the urdu
unicode support for win2k.

thanks for reply.

omar lodhi
 
I havent heard of "urdo" but there is another approach which may be able to support it. In our case, our software was too large to convert so we went the UNICODE route. What you will want to look into ICU. It should be open source but it was written in C. It can get a bit difficult to read and understand but it does come with samples. If the project is just under way, this may be worth looking into.

Matt
 
Dear All,

i want to display menu text and other text on the buttons etc
in languages like urdu, arabic etc. how can i do this i will use
VC++ as language for development.

waiting for reply.

lodhi
 
Recently I wrote up an document with source code on internationalization with VC++ but because the files are large, I cant send em by email. It is available for download at


Hopefully this gets you pointed in the right direction.

Matt
 
thanks a lot i have just downloaded that one now i will
read it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top