I am not getting the difference between resource files and satellite dll.
我没有得到资源文件和卫星DLL之间的区别。
3 个解决方案
#1
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.
资源文件通常会编译到应用程序中。卫星dll是一个dll,包括应用程序的所有资源,此外,通过其特殊的命名法可以根据国家模式加载,即区域设置。
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.
当我命名我的dll testSAT40C.dll时,它将在我为法国选择区域设置时工作时加载。
You can then get ressoirces using
然后你可以使用ressoirces
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.)
有关完整示例(包括函数GetString和LoadLocalizedResources的代码),请查看此处。 (我知道样本是在VB6中,但很容易移植到其他语言。)
#2
They are very similar, Satelite Dlls are for Translated resources.
它们非常相似,Satelite Dlls用于翻译资源。
#3
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.
附属DLL用于将资源文件(例如图标,位图和资源字符串)存储在集中位置,以便在加载项和其他应用程序中使用。构建应用程序时,资源文件将转换为附属DLL。卫星DLL可以在其他应用程序中重用。卫星DLL以本地化而闻名。您可以为不同的语言创建不同的资源文件,转换为Satellite DLL并在需要本地化的不同应用程序中重用。
#1
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.
资源文件通常会编译到应用程序中。卫星dll是一个dll,包括应用程序的所有资源,此外,通过其特殊的命名法可以根据国家模式加载,即区域设置。
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.
当我命名我的dll testSAT40C.dll时,它将在我为法国选择区域设置时工作时加载。
You can then get ressoirces using
然后你可以使用ressoirces
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.)
有关完整示例(包括函数GetString和LoadLocalizedResources的代码),请查看此处。 (我知道样本是在VB6中,但很容易移植到其他语言。)
#2
They are very similar, Satelite Dlls are for Translated resources.
它们非常相似,Satelite Dlls用于翻译资源。
#3
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.
附属DLL用于将资源文件(例如图标,位图和资源字符串)存储在集中位置,以便在加载项和其他应用程序中使用。构建应用程序时,资源文件将转换为附属DLL。卫星DLL可以在其他应用程序中重用。卫星DLL以本地化而闻名。您可以为不同的语言创建不同的资源文件,转换为Satellite DLL并在需要本地化的不同应用程序中重用。