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 with VB

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Does anybody knows how can i write arabic in VB6 ? I changed the regional settings to arabic but still see garbage when writing arabic !
 
lodhi (Programmer) Jul 14, 2002
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





Inappropriate post?
If so, Red Flag it!


Check out the FAQ
area for this forum!



Zyrenthian (Programmer) Jul 15, 2002
It is a language pack/ input locale problem. See this post

Thread116-256666


Mark this post as a helpful/expert post!


Inappropriate post?
If so, Red Flag it!


Check out the FAQ
area for this forum!



lodhi (Programmer) Jul 16, 2002
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





Inappropriate post?
If so, Red Flag it!


Check out the FAQ
area for this forum!



Zyrenthian (Programmer) Jul 16, 2002
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


Mark this post as a helpful/expert post!


Inappropriate post?
If so, Red Flag it!


Check out the FAQ
area for this forum!



lodhi (Programmer) Jul 16, 2002
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





Inappropriate post?
If so, Red Flag it!


Check out the FAQ
area for this forum!



Zyrenthian (Programmer) Jul 16, 2002
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

)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top