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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resource strings and Asian fonts

Status
Not open for further replies.

TheVampire

Programmer
May 1, 2002
828
US
I'm using the resource editor in VB, and creating a string table. I have an asian font driver running on my PC, so I can insert the strings ( In Japanese ) and they display correctly in the resource editor boxes.

I then save the RES file and attach it to my test form, which has a few command buttons and labels.

In the form load, I use the LoadResString command and assign the captions of my buttons and labels to the strings in the RES file. Run this on my development machine and all works fine, and the buttons and labels display the Kanji / Hiragana that they are assigned.

Compile the EXE and run it on my development machine fine, but when I load it on a test machine that is running the Japanese version of Win XP, the captions for the command buttons display the Kanji and Hiragana, but the label captions all are garbage.

All of the controls are set to the same font style and size.

Any ideas?

Thanks,

Robert
 
VB6 doesn't do international applications that well. If you want to run on Japanese XP, you'll need to develop in Japanese VB. Or switch to VB.NET which is fully Unicode aware, and has the ability to create multi-cultural resource DLLs from which you can get strings from on the fly.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Thanks anyways chip. There's no chance that I'll switch to NET. I'm just wondering why the buttons work OK but not the labels. Text boxes work, so I may just resort to replacing all of my labels with text boxes and setting the backgrounds / borders and locking them so they can't be edited.

I can create satellite DLL's with VB6, so I really don't need NET for that either.

Robert
 
OK, found the solution. Have to use the controls from the Forms 2.0 Library. Yes, it does have the niggling problem of being non-distributable, but in this particular instance the user can get the ActiveX control pad download free from MS and all is well...

And, in my second post above, I should have said Rich Textboxes work OK. Regular text boxes did not ( but the Forms 2.0 textboxes work fine )

Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top