Duanxx Vs learning: Vs press F5 to compile the program for reasons and solutions, duanxxvs
Today, after opening a project of Vs, I want to run it to see the effect. After pressing Ctrl + F5, Vs did not respond. After a long time, I finally found the cause: is a problem with Solution and Project.
First, let's take a look at it. The compiling menu of a normal Project should be like this:
However, my compilation menu is now like this:
The reason is obvious. No program executor
Solution:
You only need to set the current project to start the project.
In my other article, click the link to show you how to set the current project as a startup project.
The program can be compiled normally in VC 60, but cannot be run by pressing F5.
Because F5 is a debugging operation and you have not set a breakpoint, exit the main function after the operation is completed. The main function ends and the program exits.
You can press Ctrl + F5
Or a running with an exclamation point in build
Use VS2008 to compile a project (assuming the name is AAA). If you press F5, AAA cannot be found. If you press ctrl + F5, The project runs normally.
F5 is executed and debugged
Run ctrl + F5 without debugging
If an exception occurs in f5, the program will stop and an error message will pop up at the location of the error code.
Ctrl + f5 if an abnormal program stops, an error message is displayed in the winFrom dialog box.
The difference is that an error is displayed in the Code and an error is displayed in the form.