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.

相关推荐
十五年专注C++开发23 分钟前
CMake基础:foreach详解
linux·c++·windows·cmake·跨平台编译
小黄鸭code37 分钟前
C++ 算法笔试题(常见算法版)
c++·算法·排序算法
lihao lihao1 小时前
C++ set和map
开发语言·c++·算法
学嵌入式的小杨同学1 小时前
顺序表(SqList)完整解析与实现(数据结构专栏版)
c++·算法·unity·游戏引擎·代理模式
我就想睡到自然醒1 小时前
【C++基础STL1】数组和vector
c++
玖釉-1 小时前
[Vulkan 学习之路] 04 - 选妃环节:挑选物理设备与队列族
c++·windows·图形渲染
三万棵雪松1 小时前
【AI小智硬件程序(九)】
c++·人工智能·嵌入式·esp32·ai小智
HABuo2 小时前
【linux进程控制(一)】进程创建&退出-->fork&退出码详谈
linux·运维·服务器·c语言·c++·ubuntu·centos
想唱rap2 小时前
MySQL内置函数
linux·运维·服务器·数据库·c++·mysql
玖釉-2 小时前
[Vulkan 学习之路] 10 - 掌握 SPIR-V:编写你的第一个着色器 (Shader Modules)
c++·windows·图形渲染