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

multi-language resource file doesn't work sometimes

Status
Not open for further replies.

xjazz

Programmer
Jan 11, 2005
21
US
hi, guys,
i have a very wierd problem.

basiclly i have a program. it has a resource file which contains a multi-column string table. each column is one language.
for instance,this string table has English(United States), Spanish(Mexico) and Franch(France).
so it suppose to use different language base on your language setting of windows.
but when i tried to run it on different machines. sometimes it works, but sometimes it always use English(United States) language.

to me, it seems it will work on the computers which Visual Basic installed, but will not work on those without VB.

does anyone have the same problem as this?
i did a lot of search online, but can't find any.
hope someone can help me out.

thanks in advance
jazz
 
what method are u using to determine the language?

If somethings hard to do, its not worth doing - Homer Simpson
 
no, the program didn't do anything to determine what language to use.
because Windows supposes to be able to choose the right language base on windows OS's language setting.

and it works sometimes, it really confused me.
i have two computers, A and B.
A has Win XP Pro+SP2 and VS 6.0 installed, i use it to develop the program and compile it.
B has Win XP Pro+SP2 only, nothing else.
the program works well on A, but not on B.
it will always use English(US) no matter what language setting is on computer B.

thank you for any help
 
Bear in mind that it is set by the Regional Language Options, not the system's.

Control Panel...
Regional and Language Options...
Regional Options...
Location... <<< This is the deciding language.






jgjge3.gif
[tt]'Very funny, Scotty... Now Beam down my clothes.'[/tt]
 
JAG
i don't think you are right.
on those working machine, when you choose a language from the list of "Standards and forms", you don't even click apply button, the program will run with proper language.

anyway, i tried to change Location to Mexico or France too.
doesn't work either.

once again, i followed the exactly the same steps on different machines. but some work, some DON'T! :(

thanks anyway.
 
hi, guys
i installed a vm machine which is WinXP Pro+SP1
then i tried to run my program. but it didn't work. always use English(US)
then i installed Visual Studio 6 + SP6(because i can't run VB until installed SP6)
before installed SP6, it didn't work either.

but after SP6 installed and VB can be run. the program works finally.
so i think we can confirm it is because of VB and SP6, right?
then i uninstalled VS6, it still works.

but i can't still install VS6+SP6 then uninstall it for my customer, right?

what can i do now?

 
but i can't still install VS6+SP6 then uninstall it for my customer, right?

Possibly stupid question --- How are you distributing your app? Did you create a setup program, or are you just giving them the executable?

Because VB6 has a number of runtime files that it depends on, and those must be installed on a user's computer before the program will run correctly.

Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
of course i distribute my program with setup program which created by installshield.

but i have no idea about what dependency it use here.
:(
can anyone help me out?
 
Can you use the Package and Deployment wizard to see if there are any dependancies that you left out?

Another question is if these other machines are using English because they think they are English or because it is the Default. If you changed your resource file so that French was the default, would they run French or English?
 
i didn't see any dependancies i left out with the tools.

and i don't know why it always uses EN-US.
but as long as there is EN-US in the string table, it will use it no matter if it's default or what the language setting is.

if you are talking about setting as default is making the column the first one. then yes, i did.
:(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top