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.

相关推荐
东方猫15 分钟前
GetSystemDirectory
c语言·开发语言·c++
烟雨江南aabb17 分钟前
CulebraTester2-public安装
c++
酒鬼猿27 分钟前
C++初阶(十六)--STL--list的模拟实现
开发语言·c++
SUN_Gyq1 小时前
在 C/C++ 中,volatile 关键字的作用是什么?volatile 关键字与 const 关键字有什么区别?
java·开发语言·jvm·c++
Forest_10101 小时前
快速排序(C++实现)
数据结构·c++·算法
DARLING Zero two♡2 小时前
当前就业形势下C++方向后端开发学习指南
开发语言·c++·后端·团队开发
小柯J桑_2 小时前
C++:探索哈希表秘密之哈希桶实现哈希
c++·哈希算法·散列表·哈希表
XZHOUMIN2 小时前
VS2022的MFC的ReadString的问题
c++·mfc
小林熬夜学编程2 小时前
【Linux网络编程】第二弹---Socket编程入门指南:从IP、端口号到传输层协议及编程接口全解析
linux·运维·服务器·c语言·网络·c++·tcp/ip
AI+程序员在路上3 小时前
将一个 C++ 类注册为 QML 单例类型
开发语言·c++·qt6.3