Microsoft KB Archive/102163

= PRB: F5 Key Does Not Build and Run Application in One Step =

Article ID: 102163

Article Last Modified on 12/1/2003

-

APPLIES TO

 The Visual Workbench Integrated Debugger, when used with:  Microsoft Visual C++ 1.0 Professional Edition

 Microsoft Visual C++ 1.51

 Microsoft Visual C++ 1.52 Professional Edition

 Microsoft Visual C++ 2.0 Professional Edition</li></ul>

 Microsoft Visual C++ 2.1</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q102163

<div class="symptoms_section">

SYMPTOMS
An attempt to build and run the project loaded in the Visual Workbench by pressing the F5 key fails when one of the project targets is out- of-date.

<div class="cause_section">

CAUSE
This behavior is by design. If an application takes a long time to build, you may not expect the application to run after a background compilation initiated with the F5 key.

<div class="resolution_section">

RESOLUTION
Press the F5 key once to build the project. Then press the F5 key again to run the application.

<div class="moreinformation_section">

MORE INFORMATION
In the Visual Workbench, if a project file changes and the user presses the F5 key to run the program, the following message box appears:

One or more targets are out of date, or do not exist. Would you like to build them?

If you choose Yes, Visual Workbench compiles and links the application. If you press the F5 key a second time, after the build process completes, the program runs.

Additional query words: 1.00 1.10 1.50 2.00 2.10

Keywords: kbide kbprb KB102163

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.