ArticleDirectory
(1) console applications Program
Open the program, go to project> Settings, select Win32 release from the drop-down list on the left, and select "Microsoft basic class" on the right. If not, click OK.
Select build-> batch build, remove the hooks before debug, retain the hooks before release, and click OK. After completion, the release folder is generated in the main directory, and the EXE files in the folder can be copied and run independently.
(2) MFC Program
Open the program, go to project> Settings, select Win32 release from the drop-down list on the left, select Microsoft basic class on the right, and select "use MFC as the static Link Library". OK.
Select build-> batch build, remove the hooks before debug, retain the hooks before release, and click OK.
After completion, the release folder is generated in the main directory, and the EXE files in the folder can be copied and run independently.