c++
W rain or shine w
-
Visual Studio 2022 Compilation Error MSB8041 - This project requires an MFC library solution Insert picture description here]( https://img-blog.csdnimg.cn/direct/4458754f5ef04135879592953e1a73c2.png#pic_center )Install the corresponding version of the MFC library according to your own requirements. When you select the MFC library, the corresponding ATL library will be automatically selected. As follows: I only select C++MFC that is applicable to the latest v143 generation tool. Install the MFC library required by Visual Studio 2022. Visual Studio 2022 does not have enough MFC libraries installed. original 2024-02-01 13:08:13 · 1287 Reading· 0 Comments -
Review C++callback functions I remember when I learned C++, the teacher said that the callback function is a function that we define ourselves and is automatically called by the system. It seems mysterious. How does it achieve automatic invocation? After reading the following introduction and understanding its principle, I don't think it's great. Before introducing callback functions, you should know what function pointers are. We know that functions are placed in the code area of memory. They also have addresses. Their addresses are function names. For example, function: int test (int a); Then its function address is test; original 2021-10-25 09:26:05 · 444 Reading· 0 Comments -
C++typedef A typedef is a type definition, which defines a data type as an identifier, and applies this identifier in program development to realize the definition of corresponding data type variables. To sum up, the scope of use is roughly as follows: (1) To facilitate the input of programs and enhance the readability of programs, we define the structure as follows: struct {int x; int y;}; typedef struct {int x; int original 2021-10-25 09:26:25 · 1408 Reading· 0 Comments -
VC obtains IP according to the domain name #Include "Winsock2. h" # pragma comment (lib, "Ws2_32. lib")//Note that the string should end with 0. For example: lpzSeverName="www.baudu. com/0"; bool WINAPI D original 2021-10-25 09:25:41 · 602 Reading· 0 Comments