Can a DLL call/load another DLL?

c++, dll, windows

Solution

You can use load-time dynamic linking or run-time dynamic linking in your DLL in the same way as in the executable. The only restriction is not to call `LoadLibrary` from your `DllMain` function to avoid deadlocks.

Problem

I want to call some third party DLL routines from my own DLL. I'm just not sure how to do that in C++.

Original source