Encapsulation of string class -- c++
Encapsulation of string class
General code
Header file
#pragma once
#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
class MyString//The string should maintain a character array in the heap
{
public:
MyString(const char* str);//Parameterized constructor
MyString(const MyString& str);//copy cons ...
Added by rekha on Sun, 13 Feb 2022 17:12:37 +0200
On the mechanism of message mapping and command passing in MFC
This paper is mainly based on Hou Jie's MFC in simple terms, and mainly describes the MFC message mapping and transmission mechanism.
How to form a message mapping network
1 add the code of message mapping table in the source file
First, you must declare the message mapping table in the header file (. H)
class CScribbleDoc : public CDocumen ...
Added by EvilWalrus on Sun, 13 Feb 2022 15:07:59 +0200
c + + read / write serial port
This article is from: https://wangbaiyuan.cn/c-serial-communication-write-reading.html In industrial control, industrial computers (usually based on Windows platform) often need to communicate with intelligent instruments through serial port. Serial communication is convenient and widely used. Generally, the industrial computer communicates wit ...
Added by god_zun on Thu, 10 Feb 2022 12:45:14 +0200
Using MFC to make installation program -- the use of Wizard dialog box
reference resources: Chicken pecks rice When we install the software, a dialog box will pop up to tell us the steps. This is the Wizard dialog box. Today, let's study the method of creating Wizard dialog box. The two basic classes of the Wizard dialog box are property page class CMFCPropertyPage and property sheet class CMFCPropertySheet. Each ...
Added by py343 on Wed, 02 Feb 2022 23:56:31 +0200
Clion uses the MFC library. The local main method wants to run the solution after failure
Recently, I am writing JNI, and I intend to use java to call C or C + + to operate the underlying API of the operating system. MFC programming is a very old technology. A large number of windows APIs are provided in the MFC library, so we are going to write JNI to call the underlying Windows API.
Because I am used to using the products of Jetb ...
Added by jomama on Tue, 01 Feb 2022 07:03:13 +0200
CEF is related to MFC embedding
A brief introduction to xiadakeng,
1. To download appropriate compiled class library resources, do not download incomplete or problematic resources. You can search Baidu for the download address of the official website or famous outlets.
Of course, I also provided the relevant resources I downloaded,
The name is: cef_binary_90.6.7+g19ba721+c ...
Added by chodges on Sun, 30 Jan 2022 01:15:18 +0200
Learning bitmap operation of MFC
1. Notes
1.1 concept of bitmap
BITMAP is a file format that directly stores the image data of the display bit by bit without compression. BITMAP is mainly divided into device dependent BITMAP (DDB) and device independent BITMAP (DIB). DIB is left in the file with the extension bmp. DDB, also known as GDI BITMAP, is an MFC internal BITMAP form ...
Added by maxelcat on Sat, 01 Jan 2022 20:29:07 +0200
MFC uses dll for multi language switching based on dialog box
title: MFC uses dll for multi language switching based on dialog boxcategories:[MFC]tags: [audio and video programming]date: 2021/12/15Author: hackettWeChat official account: overtime ape1, ForewordQt uses qm file switching. There are two loading methods, which are easierLoad in the resource file (this is better):advantage:When the program is r ...
Added by mazman on Fri, 17 Dec 2021 18:17:27 +0200
C++ MFC calls Lua
These days, I've studied lua. The main focus is on the integration between Lua and vc. Write the code in the host program and then call the host program's code (or interface, component, whatever you like) in lua. I want to use scripts to control the host program's behavior. This is actually a separate, script-controlled architecture, which some ...
Added by mikeschuld on Tue, 09 Nov 2021 19:40:45 +0200
MFC uses RawInput to obtain code scanning gun data without focus
Recently, when the code scanning gun is used in the company's projects, it may encounter the situation that the focus is not in the program. As a keyboard device, the code scanning gun will also output the data where the focus is. It has been found on the Internet for a long time. Basically, there are many hooks, bu ...
Added by mburkwit on Fri, 29 Oct 2021 04:43:22 +0300