Duanxx Vs learning: Vs press F5 to compile the program for reasons and solutions, duanxxvs

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.