MFC Overview - Microsoft Foundation Class Library (MFC)

What is Microsoft Foundation Class (MFC)?

A set of functions, constants, data types and classes which are meant for simplifying the process of applications creation for Microsoft Windows operating system are known as Microsoft Foundation Class (MFC) library. This tutorial throws light on starting and creation of the windows-based applications using MFC.

What are the prerequisites required for learning MFC?

Good knowledge and understanding of Windows programming is essential for understanding the concept of MFC. Also knowledge and understanding of the concept of c++ programming and fundaments of object-oriented programming enables to better understand the concept of MFC.

Explain in detail the concept of MFC

The Microsoft Foundation Class Library (MFC) is an "application framework" for programming in Microsoft Windows. MFC facilitated with the codes which are used for:

  • Managing Windows.
  • Menus and dialog boxes.
  • Performing basic input/output.
  • Storing collections of data objects, etc.

The MFC framework can be extended in the C++ applications or by adding the application-specific code to MFC framework.

What is MFC Framework?

  • The MFC framework provides a set of reusable classes designed to simplify Windows programming.
  • MFC provides classes for many basic objects, such as strings, files, and collections that are used in everyday programming.
  • It also provides classes for common Windows APIs and data structures, such as windows, controls, and device contexts.
  • The framework also provides a solid foundation for more advanced features, such as ActiveX and document view processing.
  • In addition, MFC provides an application framework, including the classes that make up the application architecture hierarchy.

Why MFC?

To build the work upon the expert programmers for windows, MFC is used and it has the following advantages:

  • It shortens development time.
  • It makes code more portable.
  • It also provides tremendous support without reducing programming freedom and flexibility.
  • It gives easy access to "hard to program" user-interface elements and technologies.
  • MFC simplifies database programming through Data Access Objects (DAO) and Open Database Connectivity (ODBC), and network programming through Windows Sockets.

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status

Microsoft Foundation Class Library (MFC) Topics