473,671 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

resources and dll ??

Hi, I was wondering what is the best way to include resource in
library. I saw an example with a library which only contained one
class (Person) and the resources file associated with it (Person.resx
and Person.en.resx) . But what if my library contains 50 classes ?? Is
there a way to put all resources for a library in one file per
language? If so how can it be done, what is the name of the resource
file.

thanks
mathieu
Nov 15 '05 #1
2 1580
Hi

you are basically looking for satellite assemblies.

check the below links which shows you how to create satellite assemblies
http://samples.gotdotnet.com/quickst....aspx#satellit

http://www.developer.com/net/vb/arti...10926_3083921_

Hope this helps.

Regards
Madh

MVP | MCSD.NE

----- mathieu wrote: ----

Hi, I was wondering what is the best way to include resource i
library. I saw an example with a library which only contained on
class (Person) and the resources file associated with it (Person.res
and Person.en.resx) . But what if my library contains 50 classes ?? I
there a way to put all resources for a library in one file pe
language? If so how can it be done, what is the name of the resourc
file

thank
mathie

Nov 15 '05 #2
Hi,
Is there a way to put all resources for a library in one file per
language?
Definitely yes. Create an assembly resource file and store all the resources
there.
If so how can it be done, what is the name of the resource
file.
Anything you want it to be. Your task will then be to determine the actual
name to pass to the ResourceManager constrcutor. This name usually is
constructed like this:

<namespace>.<ch osen-name>

So if your namespace is "Foo.Bar.CoolAp p" and you've named the file
"Strings.re sx", the name you should supply to ResourceManager is

Foo.Bar.CoolApp .Strings

For other languages, create additional resource files called like:

Strings.fr-FR.resx

These will be compiled into sattellite assemblies and retrieved
automatically given the sattellite assemblies are deployed to the correct
location and the desired culture is set as the value of the CurrentUICultur e
property of the current thread.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"mathieu" <ma************ *@yahoo.fr> wrote in message
news:dd******** *************** *@posting.googl e.com... Hi, I was wondering what is the best way to include resource in
library. I saw an example with a library which only contained one
class (Person) and the resources file associated with it (Person.resx
and Person.en.resx) . But what if my library contains 50 classes ?? Is
there a way to put all resources for a library in one file per
language? If so how can it be done, what is the name of the resource
file.

thanks
mathieu


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2865
by: Derick Smith | last post by:
Hi! I am just starting to use .NET and need some help! If I create my own DLL for String resouces using this command: C:\WINNT\MICROS~1.NET\Framework\v1.1.4322\Al /t:lib /embed:resourceString.fr-ca.resources, /culture:fr-ca /out:Example2.resources.dll C:\WINNT\MICROS~1.NET\Framework\v1.1.4322\Al /t:lib /embed:resourceString.resources, /out:Example2.resources.dll
3
12649
by: Jesse | last post by:
Hi together, I've a problem with compiling an application with a build-Script and run it after. Several resource-files I compile with resgen.exe and put the files into a folders of the language. (en\*.resources, en-US\*.resources ...) With al.exe I generating several dlls with the format applicationname.resource.dll (in every language-folders one dll)
1
2289
by: Stefan Turalski \(stic\) | last post by:
Hi, What I need to do is adding some support for resources files to my application. What I did is: MyAppMain <- startup project MyAppHelper <- project which has MyAppResourcesClass (al a library project) This class call methode : ResourceManager MyAppResourceManager = new ResourceManager("MyAppMain.Resources", Assembly.GetExecutingAssembly()); and I obtain error which tell that there is no propertly added
4
39998
by: Rachel Suddeth | last post by:
What is the difference between a managed/unmanaged resource, and how do you tell which is which? I'm trying to understand how to write some Dispose() methods, and we are supposed to put code that deals with managed in one place, and code that deals with unmanaged in another place, but I can't seem to find anything that clearly explains what that means. I think if I used a Windows API function to optain a handle, that handle would be an...
0
3659
by: shamirza | last post by:
· When was .NET announced? Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and delegates were given CDs containing a pre-release version of the .NET framework/SDK and Visual Studio.NET. · When was the first version of .NET released? The final version of the 1.0 SDK and runtime was made publicly available around 6pm PST on...
0
8474
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8392
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8669
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7428
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5692
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4403
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2809
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2049
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.