MFC-链接方式

Statically Linked to MFC

Pros

  1. It own private copy of MFC library code.
  2. No need distribute the shared DLLs Mfcxx.dll and Msvcrxx.dll

Cons

  1. Build static linked DLL takes more time. Becuase, it should link with MFC libraries.
  2. It takes more disk space and memory usage

Dynamically Linked to MFC

Pros

  1. Minimize memory usage
  2. Load only once and increment the reference count for each call. The new process mapped the memory with already loaded DLL.
  3. Save disk space

Cons

  1. distribute the shared DLLs Mfcxx.dll and Msvcrxx.dll ( Should not distribute debug version )