LoadLibrary() can dynamically load a dll from a dll file on the system path or the PATH enviroment varible.
Is there any way to load a dll from a memory stream?
Thanks for any advances.
Load a dll from a stream using LoadLibrary()
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Mike GoldRank #50 · 30.6K pointsPosted Aug 8, 2007, 10:44 AM EDT
maybe you can better describe what it is you are trying to do. LoadLibrary is an SDK call for loading unmanaged dlls (usually for loading a resource). If your dll is an assembly that is managed, you probably want to use the Assembly.Load method or equivalent.
What kind of dll are you loading?
ken du17 pointsPosted Aug 9, 2007, 5:32 AM EDT
I want to load an unmanaged dll into my assembly. In my assembly, it will call the functions of the unmanaged dll. What I want to do is to merge the unmanaged dll into the result assembly and not to expose the unmanaged dll as an external dll file.
What is your advice?