Tangwx

Tangwx

博客网站

Visual C++ 2010 Express crashes when running the program, without adding any code to display the running result.

Issue: The program crashes regardless of whether I press F5 or CTRL F5 when running the program.
Solution:
Note: This method only applies to the current project and needs to be modified after creating a new project.

Click on the project in the upper left corner.
Select project name properties (P)... (ALT+F7)
Go to the VC2010_Test properties page, click on the left side Configuration Properties -> Linker -> System.
Click on the blank line to the right of SubSystem and select Console (/SUBSYSTEM).
Click on Apply in the lower right corner, and then click OK.


Then press CTRL F5 to run the program again, and the program will no longer crash.

Note: This method only applies to the current project and needs to be modified after creating a new project.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.