MFC application : let‘s learn from the start

1.How to create a sample application?

  1. please read this article and create a sample application like this:

Visual Studio 2019 创建MFC项目并运行_vs2019创建mfc项目-CSDN博客

(1)first, we need a framework.h to include the necessary file from MFC library

(2)pch.h and pch.cpp : just to include some file and complie more efficiently

(3)targetver.h : to include necessary file for different version

(4)resource.h define some macro for the MFCApplication1.cpp to use

and the following two file are the main files actually:

--MFCApplication1Dlg.cpp:

This file primarily implements the functionality for the main dialog of the MFC application, including initialization, message handling, and painting.

It helps draw the main GUI and menu of this application

--MFCApplication1.cpp:

Overall, this file sets up the application class, initializes the application, creates the main dialog, and handles the dialog's response. It contains essential initialization and cleanup code for the MFC application.

It defines the operations of this class and it's the main file of this application

and the sample show as below

2.if you want to learn the whole details about the MFC application, please read :

MFC 桌面应用程序 | Microsoft Learn

3.if you want to learn from the video:

(1)this can make you a quick start , and remember code by yourself to improve

黑马程序员MFC教程(已完结)_哔哩哔哩_bilibili

(2)Hopefully, I will go through the whole videos above and create my own MFC application by coding myself. Then I will write some articles to share with you as soon as possible.

相关推荐
码匠许师傅17 分钟前
【设计模式精讲】29.行为型模式总结与对比(Behavioral Patterns Summary)
c++·设计模式·uml
啦啦啦啦啦zzzz1 小时前
Logger的组装(c++20)
c++·算法·c++20
繁星蓝雨2 小时前
C++的设计与演进大纲(如何从C语言一步步成长为C++)
c语言·开发语言·c++·c++历史·c++演进
蒸蒸yyyyzwd3 小时前
机试学习笔记
c++·求职招聘
handler014 小时前
【Linux】线程与虚拟内存的底层世界
linux·运维·服务器·c++·线程·虚拟地址空间·共享内存
郝学胜-神的一滴4 小时前
C++11 工程级应用 09:告别无谓拷贝,解锁高性能移动语义
开发语言·数据结构·c++·vscode·软件工程·visual studio
hetao17338376 小时前
校内场-提高组 ZYZSC-S-Round 4
c++·算法
stellanke7 小时前
Linux网络编程实战2:TCP Socket 基础与实践
linux·网络·c++
蒸蒸yyyyzwd7 小时前
机试和Redis学习笔记
c++·笔记·面试
tdtsmt8 小时前
2026年SMT贴片加工选型指南:天地通电子推荐参考
c++