Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can a DLL call/load another DLL? [closed]

Tags:

c++

windows

dll

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

like image 760
samulisoderlund Avatar asked Dec 06 '10 20:12

samulisoderlund


1 Answers

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.

like image 182
Kirill V. Lyadvinsky Avatar answered Sep 19 '22 22:09

Kirill V. Lyadvinsky