Static or dynamic linking the CRT, MFC, ATL, etc

前端 未结 7 774
一整个雨季
一整个雨季 2020-12-10 11:19

Back in the 90s when I first started out with MFC I used to dynamically link my apps and shipped the relevant MFC DLLs. This caused me a few issues (DLL hell!) and I switch

7条回答
  •  孤街浪徒
    2020-12-10 11:45

    Most of the answers I hear about this involve sharing your dll's with other programs, or having those dll's be updated without the need to patch your software.

    Frankly I consider those to be downsides, not upsides. When a third party dll is updated, it can change enough to break your software. And these days, hard drive space isn't as precious as it once was, an extra 500k in your executable? Who cares?

    • Being 100% sure of the version of dll that your software is using is a good thing.
    • Being 100% sure that the client is not going to have a dependency headache is a good thing.

    The upsides far outweigh the downsides in my opinion

提交回复
热议问题