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

Problem with multi-language resource file 1

Status
Not open for further replies.

VBdevil

Programmer
Sep 19, 2002
75
IL
Hi,

I have an application in VB6 that is installed each time in a different language. I do this using a resource file that has different languages. The resource file is built this way: index 1-100 are labels/captions etc. in English, and indexes 101-200 are in a different language, indexes 201-300 are in a different language etc..
When the application is started the correct strings from the resource file are loaded (according to the language the application was installed), using the LoadResString function.

The problem is that when I run the application, with a language other than english, it shows me questions marks instead of the letters..
This happens only on some computers - not all...

Does anyone have any idea why this happens?

Thanks
 
The VB6 forms engine is ANSI encoding only. If you need to display foreign characters you would in all likelyhood need to use a copy of VB that had been localized by Microsoft for that market. Or switch to VB.NET which has full Unicode support.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
I don't have an option to move to VB.net, or to use a localized copy of VB...

Also, don't forget that the displaying problem happens only on some computers (computers where I don't have VB installed, but I used a setup program to install the application).

Any other ideas u guys?
could I be missing a file/dll or something?

Thanks..
 
Whether chip's solutions work for you or not, I believe he has still explained the problem to you. The point is that VB will install language support on a computer if it isn't there, so long as it has that capability from the dll's in your cab file.

So, you could be experiencing the problem because some of your machines already have the right language support independently of your program installation (say, from having installed the VB IDE on it), and some don't, and your installation isn't providing it. So, yes, you are probably missing a dll. You need to find out which one represents support for the foreign character sets that you're missing. It may well be that the setup program you're using doesn't catch it as a dependency, since it may not check dependencies specific to resource files. You may have to add the dll manually to your cab file once you find out which one it is.

When you find out what the file is, perhaps you can post the answer here, because it's the sort of thing that is tough to find.

Good Luck,

Bob
 
It could also be a font problem. Not all fonts have all unicode glyphs in them.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top