To install the resource editor, select the Add-In menu's Add-In Manager command. Click on the VB 6 Resource Editor. Check the Load/Unload and Load on Startup boxes. Then click Ok.
At the bottom of the Project menu, select Add New Resource File command. Now you can use the resource editor to edit the resource file.
This example uses one string table. Corresponding values for different languages are stored with the same numeric value plus a language offset. In this example, English has an offset of 0, French has an offset of 1000, and German has an offset of 2000. The "Yes" strings have a base value of 2 so the values in the table are:
Value ID
----- ----
Yes 2
Oui 1002
Ja 2002
The program uses LoadResData, LoadResPicture, and LoadResString to load its data. It selects resources by adding the selected language's offset to the string's base ID.
|