Too many bad tips, a DLL cannot be a resource. Windows requires code to be stored in a separate executable file with the appropriate PE32 header. This allows you to create a file with memory mapping to map the contents of the file to memory, allowing the code to share several processes and not fit it into the swap file. And move the code when the base address of the DLL is already in use.
Just use Project + Properties, Build events, Post-Build Event for xcopy DLL. Arbitrarily, if you saved the necessary DLLs in the "dlls" subdirectory of your project, then this command will copy them, only if necessary:
xcopy /d /y "$(ProjectDir)dlls\*.*" "$(OutDir)"
Use it in both Debug configuration and Release so that you debug exactly what you send.
source share