INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Easy Internationalization Solution

Easy Internationalization Solution

(OP)
Not sure if this is old or new information, but in reference to thread736-1256534: Russian Character Display, I came across a great component for displaying foreign languages. Works GREAT with Russian.

Only drawback? $289 for a single-developer license.

Core DLLS:
http://www.chilkatsoft.com/download/CharsetActiveX.msi
http://www.chilkatsoft.com/download/CkString.zip

Sample Code:
http://www.example-code.com/downloads/Vb6UnicodeExample3.zip

RE: Easy Internationalization Solution

(OP)
Oh, and this is for VB6, without built-in unicode awereness.

RE: Easy Internationalization Solution

Russian is like Japanese and all the other languages.  If you have Office installed, you can install a separate set of controls in VB6 that will display them.

RE: Easy Internationalization Solution

(OP)
What is the control?

RE: Easy Internationalization Solution

I've posted this on some other forum before but I can't remember which one it was otherwise I'd just give you the link to it.  This is for Japanese.  Russian will be simpler because you won't have to do part 1 in 2 stages.

1) Installing fonts
This has to be done in 2 stages
Control Panel/Regional and Language Options
Languages Tab
Check Install files for complex script and right-to-left languages
Check Install files for East Asian Languages
If you go straight into details at this point, you won't see Japanese
Click OK

Regional and Language Options
Languages Tab
Details...
Add...
Select Japanese as the input language
Click on as many OKs to exit

2) Setting up VB.  This assumes that Office has already been installed
Start up VB
Ctrl-T
Select Microsoft Forms 2.0 Object Library
OK

What you'll notice is that there are now 2 sets of controls.  The top set is ANSI, the bottom set is Unicode.  For Japanese, you have to use the bottom set.

3) Test form
Create a new form
Put a Unicode Button on it (from the bottom set)
Change the button font to MS Gothic
Change the name of the button to butty
In Form_load

CODE

butty.caption = chrw(&H3088) & chrw(&H3046) & chrw(&H3053) & chrw(&H305d)
Run and you should see a form with text in Japanese.

RE: Easy Internationalization Solution

Also in step 3, you may have to change to a font that displays Cyrillic.

RE: Easy Internationalization Solution

(OP)
Very clever. Part of me wishes I saw this before purchasing the $289 component. On the other hand, in my case - I would not have office installed on any of the machines that are running this program. See the following URL for more info.

http://specs.alpha-comm.com/al011.pdf

RE: Easy Internationalization Solution

It is just one DLL from Office but I can't remember which one.  I can't remember what the MS licence bits and pieces are on that DLL.

The alpha-comm you posted only does English, Spanish, French and German.  Are you breaking into the Cyrillic market to widen the scope?  Its fun, especially when, like me, you don't speak the language.  I had to do Chinese (Simplified and Traditional), Japanese, Korean, Vietnamese and a whole raft of European languages.  Didn't touch on Arabic or any of the Indian ones.

Good luck.

RE: Easy Internationalization Solution

(OP)
Well, as of now, it does those four languages. We are having some of these systems put into a large number of buildings in a mainly Russian area of NY. The customer wanted to have Russian added, so that is where I'm out now.

I know what you mean. It was relatively easy to match the written text to the verbal voice prompts for the Latin-based languages with familiar alphabets. The Russian language adds a whole new spin to this thing in that regard.

That's one great thing about being a computer programmer. When you do it for a living, you are forced to learn about many different areas you normally may not get involved in (language, accounting, business operations, human resources, etc...)

RE: Easy Internationalization Solution

Coercing Vb6 intrinsic controls to work with Unicode does not work for all controls. Chilkasoft takes Unicode and translates it into ANSI or MBCS using a codepage and API WideCharToMultiByte. For Russian use codepage 1251 and API WideCharToMultiByte to convert to ANSI. Then set these properties:

        charset = "windows-1251"
        Text1.Font.Name = "Arial"
        Text1.Font.charset = 204

The $289 price tag is for 1-Developer Chilkat Bundle. That's a lot if you only need the WideCharToMultiByte conversion. Google for Visual Basic WideCharToMultiByte and you will get this code and examples for free. Also see my Tutorial for free conversions for UTF-8, UTF-16, MBCS at http://cyberactivex.com/UnicodeTutorialVb.htm.

Having said that though you should consider ditching UTF-8, MBCS, Codepages and go with Unicode controls. A free Unicode TextBox can be found at http://www.vbforums.com/showthread.php?p=3084062#post3084062

MS Office Forms 2.0 Object Library is not redistributable however... anyone can get it for free by downloading http://download.microsoft.com/download/activexcontrolpad/Install/4.0.0.950/WIN98MeXP/EN-US/setuppad.exe
 
MS Office Forms 2.0 Object Library  requires FM20ENU.Dll(installed only with US versions of Office) and does not support Unscribe which may be important if you need Font Fallback feature or Complex Scripts.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close