I have a DLL that connects using LoadLibrary(src) . The absolute path to the file is registered in src . But I don't want to carry dll everywhere.
UPD.
I'm doing a hook ... SetWindowsHookEx

  • 2
    DLL is yours? Link statically. - VladD
  • You can embed the DLL code inside the exe-file and unpack it, if necessary, into an external file that is already loaded via LoadLibrary . When you exit the program - delete the file. Well, or create it in a temporary folder - it will be deleted. To say that this super solution is impossible. I also like the static layout more. But there is very little additional information in the question - what kind of DLL, why is it, etc. - gecube

0