This is a good read: https://www.codeprojec*****m/Articles/...edded-Resource
Also, why would you even want to do that if your not going to be doing a public release? Just download the dll from a server and use loadlib to inject it (if you dont mind getting the dll stolen in a few seconds).
If you really want it to be secure try manual map. I feel thats too advance for you though.