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.

相关推荐
Elias不吃糖26 分钟前
整合了c++里面常用的STL及其常用API
开发语言·c++·学习·stl
FLPGYH1 小时前
BMC 深度解析:服务器带外管理的核心技术架构与实践
linux·服务器·c++·驱动开发
普通网友3 小时前
内存对齐与缓存友好设计
开发语言·c++·算法
普通网友3 小时前
C++编译期数据结构
开发语言·c++·算法
代码程序猿RIP3 小时前
【C++开发面经】全过程面试问题详解
java·c++·面试
普通网友3 小时前
嵌入式C++安全编码
开发语言·c++·算法
云知谷4 小时前
【软件测试】《集成测试全攻略:Mock/Stub 原理 + Postman/JUnit/TestNG 实战》
c语言·开发语言·c++·软件工程·团队开发
普通网友4 小时前
分布式锁服务实现
开发语言·c++·算法
普通网友4 小时前
移动语义在容器中的应用
开发语言·c++·算法
teacherlg5 小时前
Source Insight 乱码问题解决
c++·乱码·编码·sourceinsight