Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
149 views
in Technique[技术] by (71.8m points)

windows - Visual C++ vs MFC

Before asking this question on this platform, I have googled and read a couple of books.

My Understanding So Far:

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.

Confusions

  1. If I read a book on MFC, it starts talking about Visual C++ (for example CString class)
  2. If I read a book on Visual C++, it starts explaining GUI development without actually explaining the different classes/templates
  3. But I do not find a book that explains the classes of Visual C++ separately.

Questions:

  • Are Visual C++ and MFC the same thing? If NO, then where can I find the description of Visual C++ classes only (without GUI development text)?
  • Are Visual C++ and Visual Studio related?
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

"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 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.

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...