vaibhav
vaibhav

Reputation:

What is the difference between a resource file and a satellite DLL?

I am not getting the difference between resource files and satellite dll.

Upvotes: 1

Views: 2672

Answers (3)

S.Roshanth
S.Roshanth

Reputation: 1507

Satellite DLLs are useful for storing resource files, such as icons, bitmaps, and resource strings, in a centralized location for use in add-ins and other applications. Resources file will converted to satellite DLL when building the application. Satellite DLLs can be reuse in other application.Satellite DLLs are famous for localization. you can create different resource files for different languages, convert to Satellite DLLs and reuse in different applications where you need localization.

Upvotes: 0

Ralph M. Rickenbach
Ralph M. Rickenbach

Reputation: 13203

Ressource files usually get compiled into the application. A satellite dll is a dll, that includes all the ressources of an application and in addition, through its special nomenclature can be loaded based on the country schema, that is regional settings.

409 : LocaleID for English (United States)
40C : LocaleID for French (Standard)

When I name my dll testSAT40C.dll, it will be loaded when I'm working when selecting regional settings for France.

You can then get ressoirces using

     If (LoadLocalizedResources) Then

        ' Pull a string resource out of a local resource
        ' object for demonstration purposes.
        Command1.Caption = GetString(101)
     End If

For a complete example (including the code for the functions GetString and LoadLocalizedResources) look here. (I know the sample is in VB6, but easy enough to port to other languages.)

Upvotes: 4

Tim Jarvis
Tim Jarvis

Reputation: 18815

They are very similar, Satelite Dlls are for Translated resources.

Upvotes: 0

Related Questions