knobloch
asked on
How to load over 40 dll files into C# application.
Hi
I have a little problem with dll files.
My application requires over 40 dll, which contain images for Windows Forms, and I just wonder what is the best way to load these dll into application. Problem is that dll files are stored in different subfolders of main application; I want to call it dynamically when I need it.
Could anyone tell me how to do it and how to access images from dll files?
I will appreciate sample code!!
I have a little problem with dll files.
My application requires over 40 dll, which contain images for Windows Forms, and I just wonder what is the best way to load these dll into application. Problem is that dll files are stored in different subfolders of main application; I want to call it dynamically when I need it.
Could anyone tell me how to do it and how to access images from dll files?
I will appreciate sample code!!
ASKER
Could you write a sample code for me?
How can I access for example "image1.gif" from ../mySubfolder/myFile.dll ?
Thanks
How can I access for example "image1.gif" from ../mySubfolder/myFile.dll ?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
That’s good enough for me.
That’s good enough for me.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemReflectionAssemblyClassGetManifestResourceStreamTopic2.asp
you would then use Image.FromStream() to load an image from the resource strem.