HOWTO: Browse on Demand with Visual C++ Version 4.0

Last reviewed: October 6, 1997
Article ID: Q138666
The information in this article applies to:
  • The development environment included with: - Microsoft Visual C++, 32-bit Edition, version 4.0

SUMMARY

Browsing on demand works differently in Visual C++ 4.0 from previous versions. If you do not have browse information generated when you attempt to use the browser in Visual C++ 4.0, you will get a message stating that there is no browse information for the project. Then the project will be rebuilt accordingly to allow you to browse your project information.

One other option is to always build the individual source browser files (.sbr) during your builds without generating the combined browser file (.bsc). Then run Bscmake.exe as a tool from the Tools menu. This article describes the steps required to do this.

MORE INFORMATION

Step-by-Step Procedure

  1. On the Build menu, click Settings to bring up the Project Settings dialog box.

  2. Select the desired target in the Settings For tree view.

  3. Click the C/C++ tab, and select the Generate browse info check box. This will generate an .sbr file corresponding to each source file. Ensure that the "Build browse info file" check box in the Browse Info tab is cleared.

  4. Click OK to accept.

  5. On the Tools menu, click Customize to bring the Customize dialog box. Click the Tools tab, and then click Add.

  6. Browse for the \Msdev\Bin\Bscmake.exe file.

  7. Fill in the fields for the tool as shown here:

       Field                Value
       -------------------------------------------------------------
       Menu text            &Bscmake
       Command              [Drive designation]\msdev\bin\bscmake.exe
       Arguments            /o$(TargetName).bsc /n *.sbr
       Initial directory    $(TargetDir)
    
       NOTE: You can select the custom arguments like $(TargetName) from the
       menu provided on the right side of the edit box.
    
    

  8. Select the "Redirect to Output Window" check box, and click Close, accepting this tool.

NOTE: If you have been browsing the current .bsc file, you will have to close it before building a new .bsc file. On the Tools menu, click Close Browse Info File.
Keywords          : VwbIss
Version           : WINNT:4.0;
Platform          : NT WINDOWS
Issue type        : kbhowto


================================================================================


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: October 6, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.