MFC 和 ATLMFC and ATL

Microsoft Foundation Classes (MFC) 透過 Win32 提供 C++ 物件導向包裝函式,以便快速開發原生桌面應用程式。The Microsoft Foundation Classes (MFC) provide a C++ object-oriented wrapper over Win32 for rapid development of native desktop applications. Active Template Library (ATL) 是簡化 COM 開發,並且廣泛用於建立 ActiveX 控制項的包裝函式程式庫。The Active Template Library (ATL) is a wrapper library that simplifies COM development and is used extensively for creating ActiveX controls.

您可以使用 Visual Studio Community Edition 或更新版本建立 MFC 或 ATL 程式。You can create MFC or ATL programs with Visual Studio Community Edition or higher. Express Edition 不支援 MFC 或 ATL。The Express editions do not support MFC or ATL.

在 Visual Studio 2015 中,Visual C++ 是選用元件,而 MFC 和 ATL 元件是 Visual C++ 底下的選用子元件。In Visual Studio 2015, Visual C++ is an optional component, and MFC and ATL components are optional sub-components under Visual C++. 如果您第一次安裝 Visual Studio 時未選取這些元件,當您第一次嘗試建立或開啟 MFC 或 ATL 專案時,系統會提示您安裝這些元件。If you do not select these components when you first install Visual Studio, you will be prompted to install them the first time you attempt to create or open an MFC or ATL project.

在 Visual Studio 2017 和更新版本中,MFC 和 ATL 是在 Visual Studio 安裝程式程式中 使用 c + + 工作負載的桌面開發下,選擇性的子元件。In Visual Studio 2017 and later, MFC and ATL are optional sub-components under the Desktop development with C++ workload in the Visual Studio Installer program. 您可以在不搭配 MFC 的情況下安裝 ATL 支援,或是將 MFC 和 ATL 支援 (MFC 相依于 ATL) 。You can install ATL support without MFC, or combined MFC and ATL support (MFC depends on ATL). 如需工作負載和元件的詳細資訊,請參閱 安裝 Visual StudioFor more information about workloads and components, see Install Visual Studio.

標題Title 說明Description
MFC 桌面應用程式MFC Desktop Applications Microsoft Foundation Classes 透過 Win32 提供精簡型物件導向包裝函式,以便在 C++ 中快速開發 GUI 應用程式。Microsoft Foundation Classes provide a thin object-oriented wrapper over Win32 to enable rapid development of GUI applications in C++.
ATL COM 桌面元件ATL COM Desktop Components ATL 提供類別樣板及其他用途建構,以簡化 C++ 中的 COM 物件建立作業。ATL provides class templates and other use constructs to simplify creation of COM objects in C++.
ATL/MFC 共用類別ATL/MFC Shared Classes 由 MFC 和 ATL 共用之 CStringT Class 和其他類別的參考。References for CStringT Class and other classes that are shared by MFC and ATL.
使用資源檔Working with Resource Files 資源編輯器可讓您編輯 UI 資源,例如字串、影像及對話方塊。The resource editor lets you edit UI resources such as strings, images, and dialog boxes.
Visual Studio 中的 C++C++ in Visual Studio 所有 c + + 檔的父主題。Parent topic for all C++ documentation.