Day0: Building Windows programming environment

Preface: To learn something, you must first ask three questions:

1. What is this thing?

2. Why learn it?

3. How to learn it?

The first question is to understand what you want to learn, and you will have an overall understanding of it. This is also half of the answer to the second question. When you understand what it is, you will understand what value it can bring. This is the reason for learning it. Our motivations determine how we learn and how much we need to consider learning.

What is Windows programming?

Windows programming: Windows API is encapsulated in the form of C++ classes , and an application framework is included to reduce the workload of application developers.

Contains a large number of Windows handle encapsulation classes and many Windows built-in control and component encapsulation classes. Concentrate on the logic of the program, rather than these things that have to be repeated every time you program, but because it is a general framework, there is no best pertinence.

Why learn Windows programming?

  1. In order to learn reverse engineering, some knowledge of Windows programming is required.
  2. Meet the technical needs of Windows development

How to learn Windows programming?

Learning purpose: Master Windows programming theory, just like learning a programming language.

Reference materials: This time, we must learn to make changes, and force ourselves to read the official documentation

                  Microsoft Learn: Build the skills to open up new career opportunities

Bibliography: Fan Wenqing "Windows API Development Detailed Functions, Interfaces, Programming Examples"

                  Sun Xin's "In-depth Understanding of VC++" Reference

Learning environment construction

You need to install Visual Studio, configure related components, install Tomato Assistant, and install Everything

  • Needless to say, VS is a tool we develop, just like IDEA.
  • VA can improve the efficiency of writing code and fast search, and it has powerful functions.
  • Everything: an artifact for computers to find files, supporting multiple methods.

Install VS 2019

VS 2019 Professional Edition key :NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y

Download address : Visual Studio 2022 IDE - Programming Tools for Software Developers

Components that need to be installed:

Then all the way to Next. Use the key to activate and use it.

Install VA

Download URL : http://www.lanzoui.com/iuAHNpcliqh Password: 1vp2

1. Run the exe installer

2. Copy the dll file in the crack to the VA installation directory

        VA installation directory: C:\Users\User\AppData\Local\Microsoft\VisualStudio\16.0_d4057de1\Extensions

Possible problems: Generally, it is the sequelae of multiple installation failures.

Problem: The installation failed, and the VS plug-in installation failed.

Solution:

1. Double-click to run VisualAssistX_2440. Click Install. At this time, open Eeverting immediately and search for *.vsix. You will find VaXSetup64.vsix and VaXSetup.vsix in the temp folder of the C drive, and copy the vsix file to the desktop according to your own system. Mine is a 64-bit system, so copy VaXSetup64.vsix to the desktop.
2. Open Everything again and search for VA_X64.dll, and delete the plug-in installation directory under Extensions.
3. Double-click VaXSetup64.vsix to install. At this time, the installation can be successful.
4. However, due to the previous error problem, the AssistX plug-in cannot be successfully started when opening visual studio at this time. At this time, close visual studio, right-click the visual studio icon on the desktop, open the location, enter the visual studio installation directory, run cmd, and enter this directory. Execute devenv.exe /safemode and press Enter, start visual studio once, and then close.
5. Re-open visual studio, enter the plug-in management, enable AssistX, then close visual studio and open visual studio again, and you will see the beautiful AssistX plug-in pop-up window.

Problem: Solve the problem of incomplete uninstallation

Solution:

If you have installed Visual Assist x before, you need to open VS2019, and uninstall Visual Assist in the project bar extension-management extension-installed-tool option.
Step 1: If you open VS2019 and the uninstallation is not clean, delete the folder, usually in the path C:\Users\username\AppData\Local\VisualAssist.
Step 2: Under C:\Users\username\AppData\Local\Temp, delete vsix-va-20221215142818.log, vsix-va-uninst-20221215142411.log file, VaXSetup.vsix file, 20221215142818 and 20221215142411 are the previous The date when Visual Assist was installed. There are several of these .log files, you can watch and delete them yourself.
Step 3: After deleting the folder, delete the registry entries. If the following two registry entries exist, delete them, and if they don’t, don’t care.
Delete the registry key of HKEY_CURRENT_USER\SOFTWARE\WHOLE TOMATO
Delete the registry key of HKEY_LOCAL_MACHINE\SOFTWARE\Whole Tomato.

Install Everything

voidtools

At this point, the environment is set up.

Guess you like

Origin blog.csdn.net/qq_61553520/article/details/130875597