• Advertisement
Sign in to follow this  

[C++] What's the point of DLL implicit linking?

This topic is 2898 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When performing implicit linking, a static library is needed along with a DLL. What is the difference between this and using a static library straight out?

Share this post


Link to post
Share on other sites
Advertisement
The idea is that you get the best of both worlds. You're still using a modular DLL which means you can do things like delay loading, but you don't have to go through the nastiness of calling LoadLibrary and GetProcAddress to call exported functions.

Share this post


Link to post
Share on other sites
Quote:
Original post by MJP
You're still using a modular DLL which means you can do things like delay loading, but you don't have to go through the nastiness of calling LoadLibrary and GetProcAddress
How do you do that? To my knowledge, the loader will load and resolve all symbols at startup. The only thing that you can delay is paging in the actual code, but that's done with all pages in any executable anyway.

Is there a "secret handshake" that you can use to actually delay loading and not needing to look up symbols by hand?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement