Accessing old(legacy)resource DLL in C#

Trips

Well-known member
Joined
Aug 7, 2010
Messages
2,788
Hi,
Need help on how I can use data from old resource only DLLs in my C# .NET app.  I have a collection of about 5 DLLs generated in 1998 that contain strings, images and sounds needed for this new c# application.
Ive attempted the following....
1) to use add reference->browse to add the DLL to my solution but get and error saying it cant add because it needs a valid assembly or COM component.
2) attempted to use System.Resources.<font color="#008080" size=2>ResourceManager</font><font size=2>.CreateFileBasedResourceManager to load the resources, but I seem to be doing something wrong because it does not load anything into the datastructure.  </font>
<font size=2>3)Ive searched around for any examples for how to do this but cant find anything with C# and old resource DLL.  Ive used reshack to look into the DLL and found the resources needed so I know they are there but Ive hit a wall and dont know what my next step should be.</font>
<font size=2>What would be most helpful is a simple example how to load the DLL correctly, then how to access a resource from it.  Of course any help at all is appreciated.</font>
<font size=2>thanks </font>

View the full article
 
Back
Top