Proceed as follows:
1 Download VS community 2019 (VS2019 Community Edition): You can download it directly from the official website for free ( VS official website )!
Download irvine link library ( irvine link library download )
2 Create a C++ empty project:
3 The project is completed, open the Solution Explorer --> right click on the project --> Generate Dependency --> Generate Custom
4 Select masm --> OK
5 Add source file: Open the solution explorer --> click "resource file" --> select "C++ file" --> change the file extension to .asm
6 Open the Solution Explorer --> right click on the project name --> select properties (bottom) --> select Microsoft Macro Assembler --> Include Paths --> edit --> add the irvine library directory (as shown below) :
7 Open the Solution Explorer --> right-click the project name --> select properties (bottom) --> select "Linker" --> select "General" --> select "Additional Library Directory" --> Edit --> Add the irvine library directory (as shown below):
8 Open the Solution Explorer --> right click on the project name --> select properties (bottom) --> select "linker" --> select "input" --> select "additional dependencies" --> Edit --> directly edit and write irvine32.lib:
9 Program test
TITLE EXAMPLE
include irvine32.inc
.data
str1 byte "Hello World!", 0
.code
main proc
mov edx, offset str1
call writestring
call crlf
exit
main endp
end main