Posted 22 October 2008 - 07:50
You can't.
You have two options:
1. Link in the file dependencies statically, so the libs are included in your DLL, and the other DLL is no longer necessary.
2. Write a new DLL with one function. That function extracts all required DLLs from the Binary table, puts them in a temporary folder, and then calls the required function. Obviously this DLL should have no dependencies.
The first option is the easiest method, but when you cannot get to the sources of the dependant DLL you'll stuck with the second.