Application Settings, MFC DLL Wizard

Use this page of the MFC DLL wizard to design and add basic features to a new MFC DLL project.

DLL type

Select the type of DLL you want to create.

  • Regular DLL using shared MFC DLL
    Select this option to link the MFC library to your program as a shared DLL. Using this option, you cannot share MFC objects between your DLL and the calling application. Your program makes calls to the MFC library at run time. This option reduces the disk and memory requirements of your program if it is composed of multiple execution files that use the MFC library. Both Win32 and MFC programs can call functions in your DLL. You must redistribute the MFC DLL with this type of project.

  • Regular DLL with MFC statically linked
    Select this option to link your program statically to the MFC library at build time. Both Win32 and MFC programs can call functions in your DLL. While this option increases the size of your program, you do not need to redistribute the MFC DLL with this type of project. You cannot share MFC objects between your DLL and the calling application.

  • MFC extension DLL
    Select this option if you want your program to make calls to the MFC library at run time, and if you want to share MFC objects between your DLL and the calling application. This option reduces the disk and memory requirements of your program, if it is composed of multiple executable files that all use the MFC library. Only MFC programs can call functions in your DLL. You must redistribute the MFC DLL with this type of project.

Additional features

Select whether your MFC DLL should support automation and whether it should support Windows sockets.

  • Automation
    Select Automation to allow your program to manipulate objects implemented in another program. Selecting Automation also exposes your program to other Automation clients. See Automation for more information.

  • Windows sockets
    Select this option to indicate that your program supports Windows sockets. Windows sockets allow you to write programs that communicate over TCP/IP networks.

    When your MFC DLL with Windows sockets support is created, CWinApp::InitInstance initializes support for sockets and the MFC header file StdAfx.h includes AfxSock.h.

See Also

Tasks

Creating an MFC DLL Project

Concepts

MFC DLL Wizard