Solved

Resource Editor in VB

Posted on 1998-10-08
10
340 Views
Last Modified: 2013-12-26
How to use multiple string table in resource editor (add-on tool). I had able to use single string table but not multiple string table. The purpose to use multiple string table is to create multilingual purpose. Please submit the source code together for me.
0
Comment
Question by:cclim
10 Comments
 
LVL 1

Expert Comment

by:abhinavm
Comment Utility
i have no idea how to add multiple string table in resource file. i am not sure that you can do it.
  for having multi lingual strings you can do one thing. store strings for different language in same table, but having perticular base address. like for english start storing strings from 1000 onwards for German store 2000 onwards etc.
  and in your code use loadrestring( languageBase+ offset) where languageBase you can have has compiler define constant which you can set according to language, and offset is the string number.

0
 

Author Comment

by:cclim
Comment Utility
Sorry to reject the proposal. The reason is I had know this ideas.Based on "resources add-on" help file, multiple string table is able to be created and we don;t need to use the method as you method as above( language +offset) and during run-time, VB able to obtain the LCID from your system and go to the appropriate column in the multiple string table to display the appropriate language. Beside that, the method you metion had some disadvantage . E.g. when one type of language is more 1000 in future then how your program need to do? Do you change the code?
 On the other hand, based on my knowledge, this problem can be solve using multiple string table in resource editor. Therefore, more description of multiple string table is in the help file. If anybody can solve it, please do let me know and attach the source code as well. Thanks.
0
 
LVL 13

Expert Comment

by:Mirkwood
Comment Utility
Are you using version 5 or version 6?
In case that you are using version 5. Which resource editor are you talking about?
Other resource editor like Microsoft DevStudio can create multiple string tables.
What I always do is one resource dll per language.
I load the correct language resource dll with loadlibrary and load the resources with LoadResource.

0
 

Author Comment

by:cclim
Comment Utility
Actually, i am using Visual Basic 5.0 Prof. Ed. and I download the reosurce editor add-on from the Visual Studio home page in Microsft site. Anyway, I understand what you (MirkWood) saying but how about i just want to put all type of language in one dll instead of one language per dll?
 Thanks for your answer.
0
 
LVL 15

Expert Comment

by:Eyal
Comment Utility
For first language start with 0 ID and the second language will start in 1000 and so on. The program will have an ID for the string you want from the resource file and language Prefix number(0,1000,...) and like that you can creat multiple language resource file.

hope this helps.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 13

Expert Comment

by:Mirkwood
Comment Utility
It seems to work for me.
I created two string tables. (just goto Edit string table and choose the second button. Insert new string table)
One of the string tables was English and the other one was Dutch. When I changed the locale Id to Dutch it used the dutch resources in stead of the english ones. So it seems to work.

0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 100 total points
Comment Utility
It seems to work for me.
I created two string tables. (just goto Edit string table and choose the second button. Insert new string table)
One of the string tables was English and the other one was Dutch. When I changed the locale Id to Dutch it used the dutch resources in stead of the english ones. So it seems to work.
0
 

Author Comment

by:cclim
Comment Utility
Mirkwood, can you please attach the source code written in VB to me My email address:cclim39@hotmail.com. The reason is, although i had change my system locale id to another language instead of english (e.g France) the france language that store in my multiple string table will not retrieve but VB only retrieve the english version for me. Why?
0
 

Author Comment

by:cclim
Comment Utility
For Mirkwood, I still can't use the other resources although my system language had change from English to other languages such as france. By the way, how do i change the locale ID? I change it in the regional setting in control panel, is it the right place to change it? Please guide me through... Thanks Mirkwood.
0
 

Author Comment

by:cclim
Comment Utility
Where should i change the locale id? Please guide me through. If possible, please send me your source code as well.  The reason is i had change locale id but the language still can't change to Dutch. Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now