Visual C++ 与 MFC [英] Visual C++ vs MFC
问题描述
在这个平台上问这个问题之前,我已经谷歌搜索并阅读了几本书.
Before asking this question on this platform, I have googled and read a couple of books.
我目前的理解:
据我所知,MFC 是用于在 Windows 中开发 GUI 应用程序的框架.MFC 使用 Visual C++ 库,可以将其视为 Windows API 的包装库.
I understand that MFC is a framework for the development of GUI applications in Windows. MFC utilizes the Visual C++ library, which can be considered as a wrapper library around Windows APIs.
困惑
- 如果我读了一本关于 MFC 的书,它就会开始谈论 Visual C++(例如
CString
类) - 如果我读了一本关于 Visual C++ 的书,它就会开始解释 GUI 开发,而没有实际解释不同的类/模板
- 但我没有找到单独解释 Visual C++ 类的书.
问题:
- Visual C++ 和 MFC 是一回事吗? 如果不是,那么我在哪里可以找到仅对 Visual C++ 类的描述(没有 GUI 开发文本)?立>
- Visual C++ 和 Visual Studio 是否相关?
推荐答案
Visual C++" 是编译器和 IDE 的名称.它出现在 Visual Studio 发明之前,将多种编程语言整合到一个产品中.
"Visual C++" is the name of the compiler and IDE. It emerged, before Visual Studio had been invented, incorporating several programming languages into a single product.
MFC 随 Visual C++/Visual Studio 一起提供,它是一个类库,既充当框架,又充当基于平面 C 的 Windows API 的资源包装器.
MFC ships with Visual C++/Visual Studio, and is a class library that both acts as a framework, as well as a resource wrapper for the flat C-based Windows API.
对于大多数 MFC 类,有一个层次结构图Microsoft 的文档站点,以及 MFC 类一>.GUI 类和非 GUI 类之间没有物理或逻辑分离.
There's a Hierarchy Chart for most MFC classes on Microsoft's documentation site, as well as a list of MFC Classes. There is no physical or logical separation between GUI classes and non-GUI classes.
这篇关于Visual C++ 与 MFC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!