Exporting resources from DLL

  • Thread starter Thread starter ajk
  • Start date Start date
A

ajk

I was wondering if I have a string resource in a DLL if it is somehow
possible to export this so that other DLL's / .EXE linked in can use
these strings?

e.g.

A.DLL (all strings used throughout the program)
ResourceA : string resource Foo "Some string"

B.EXE
string s = ResourceA.Foo;

C.DLL
string s = ResoruceA.Foo;

thanks
Ajk
 
ajk,

Have you looked at the ResourceManager class in the System.Resources
namespace? You might be able to pass a type from the assembly with the
resources, and access the items through that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top