zoukankan      html  css  js  c++  java
  • 区别:Use MFC In A Shared DLL 和 Use MFC In A Static Library

    摘自:Programming Windows with MFC, 2nd Edition

    Choosing Use MFC In A Shared DLL minimizes your application's executable file
    size by allowing MFC to be accessed from a DLL. If you choose Use MFC In A Static
    Library instead, Visual C++ links MFC code into your application's EXE file and the
    file size grows considerably. Static linking uses disk space less efficiently than
    dynamic linking because a hard disk containing 10 statically linked MFC
    applications contains 10 copies of the same MFC library code. On the other hand,
    an application that is statically linked can be run on any PC, whether or not the
    MFC DLL is present. It's your call whether to link to MFC statically or dynamically,
    but remember that if you distribute a dynamically linked EXE, you'll need to
    distribute the DLL that houses MFC, too. For a release-build MFC application
    created with Visual C++ version 6, that DLL is named Mfc42.dll if the program
    uses ANSI characters and Mfc42u.dll if it uses Unicode characters.

  • 相关阅读:
    注释
    选择器
    SQL语句中查找字符的位置
    SQL语句中截取字符串Substr
    IDENTITY(函数)
    SQL Server设置主键自增长列
    SQL语句操作ALTER
    表的主键
    南京夜市
    夜班
  • 原文地址:https://www.cnblogs.com/qrlozte/p/4616774.html
Copyright © 2011-2022 走看看