Thursday, July 30, 2009

Dynamic Link Libraries (DLL) and C++?

Some programs install a bunch of DLL files in a directory. Is this done for efficiency? (e.g. a program boots the DLL when needed)? The alternative would be to have everything in one big executable right?

Dynamic Link Libraries (DLL) and C++?
The logic of a DLL is that multiple applications (or threads of the same application) can share the same instance of the DLL in memory. If the code was static, then each instance of the applications using that code would need it's own copy of it in memory. It also improve modualization and allows for easier upgrade of your application (why release a new build when you can just release an updated DLL?)
Reply:one of the reasons some DLLs are made is that other vendors and they are purchased through the company that publish the very end product.





Sometimes it would be nice to have a DLL that include just GUI and multilingual translations of them so that translators work on them separately.





However it would be better if they all were in one executable file.

verbena

No comments:

Post a Comment