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

Last reviewed: January 18, 1996
Article ID: Q102163
The information in this article applies to:
  • The Visual Workbench included with:

        - Microsoft Visual C++ for Windows, versions 1.0, 1.5, 1.51, and
          1.52
        - Microsoft Visual C++ 32-bit Edition, versions 1.0 and 2.0
    

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.

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.

RESOLUTION

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

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 reference words: 1.00 1.10 1.50 2.00 2.10
KBCategory: kbtool kbfasttip kbprb
KBSubcategory: VWBIss


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 18, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.