473,320 Members | 2,073 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 1575
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>.<chosen-name>

So if your namespace is "Foo.Bar.CoolApp" and you've named the file
"Strings.resx", 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 CurrentUICulture
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.google.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
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...
3
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...
1
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...
4
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...
0
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.