It include four steps:
Add the assembly language file to the project.
In the Solution Explorer window, right-click the Visual C++ project, choose “Build Customizations…”, and a dialog box labeled “Visual C++ Build Customization Files” will pop up. Check the “masm” option and click OK.
At this point, in the Configuration Property, you can see “Microsoft Macro Assembler.“
Right-click the assembly language file, select “Properties,” go to “Custom Build Step,” and then “General.”
In the “Command Line“ field on the right, input:
1 | ml.exe /c /D"X86" /D"DEBUG" /Fo"$(IntDir)/$(InputName).obj" $(InputFileName) |
In the “Outputs“ field, input:
1 | $(IntDir)/$(InputName).obj |
- Don’t forget to add the path to ml.exe to the environment variable “PATH.”