Loading a dll from a memory buffer can be usefull: you can pack the library inside your exe as a resource and the exe itself will extract and manually map it without having to save it on disk. It is a no trivial process involving the implementation of the same steps that are followed by the LoadLibrary win32 api.