Skip to content

Load a dll from a stream using LoadLibrary()

ken du

Asked Aug 8, 2007, 9:32 AM EDT2 answers
Share
LinkedInX
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.

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Mike Gold
    0

    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?

    0
  • 0
    Thanks for your quick reply.
    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?
    0