Microsoft KB Archive/138666

= How To Browse on Demand with Visual C++ Version 4.0 =

Article ID: 138666

Article Last Modified on 6/29/2004

-

APPLIES TO


 * Microsoft Visual C++ 4.0 Standard Edition
 * Microsoft Visual C++ 5.0 Enterprise Edition
 * Microsoft Visual C++ 5.0 Professional Edition
 * Microsoft Visual C++ 6.0 Enterprise Edition
 * Microsoft Visual C++ 6.0 Professional Edition
 * Microsoft Visual C++ 6.0 Standard Edition

-



This article was previously published under Q138666



SUMMARY
Browsing on demand works differently in Visual C++, versions 4.0 and later, from previous versions. If you do not have browse information generated when you attempt to use the browser in Visual C++ 4.0 and later, you get a message stating that there is no browse information for the project. Then the project is 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.



Step-by-Step Procedure
 On the Build menu, click Settings to bring up the Project Settings dialog box. Select the desired target in the Settings For tree view. 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. Click OK to accept. On the Tools menu, click Customize to bring the Customize dialog box. Click the Tools tab. In Visual C++, version 4.0, click Add. In Visual C++, versions 5.0 and 6.0, click the blank line at the bottom of the Menu Contents list and type &Bscmake. Browse for the Bscmake.exe file. In Visual C++, versions 5.0 and 6.0, you can click the ellipsis beside the Command box to do this.  Fill in the fields for the tool as shown here: <pre class="fixed_text">  Field                Value -  Menu text            &Bscmake Command             [Full path to BSCMAKE.EXE]\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. </li> In Visual C++, version 4.0, select "Redirect to Output Window", and click Close, accepting this tool. In Visual C++, versions 5.0 and 6.0, select "Use Output Window".</li></ol>

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: kbhowto kbide KB138666

-

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

© Microsoft Corporation. All rights reserved.