MFC application : let‘s learn from the start

本文指导如何在VisualStudio2019中创建一个MFC项目的样例应用,涉及框架设置、关键文件包含和主对话框及应用程序类的实现。链接到更深入的MFC教程和视频资源供进一步学习。
摘要由CSDN通过智能技术生成

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.

  • 25
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值