winapi - Implicit vs. Explicit linking to a DLL -
when 1 should implicitly or explicitly link dll , common practices or pitfalls?
it rare explicitly link dll. because painful , error prone. need write function pointer declaration exported function , loadlibrary + getprocaddress + freelibrary code right. you'd if need runtime dependency on plug-in style dll or want select set of dlls based on configuration. or deal versioning, api function that's available on later versions of windows example. explicit linking default com , .net dlls.
more background info in msdn library article.
Comments
Post a Comment