Microsoft KB Archive/167734

= FILE: MFC Browser Library (MFC.BSC) in VC 5.0 Is Incomplete =

Article ID: 167734

Article Last Modified on 8/9/2004

-

APPLIES TO


 * Microsoft Visual C++ 5.0 Enterprise Edition
 * Microsoft Visual C++ 5.0 Professional Edition

-



This article was previously published under Q167734



SUMMARY
The MFC browser library (Mfc.bsc) that ships with Visual C++ is incomplete. The browser cannot find some symbols in MFC (for example, References to CDC::m_hDC).

There are two self-extracting files included in this article. They both contain Mfc.bsc files.
 * Mfcbsc1.exe contains Mfc.bsc file created with Devstudio installed under the root directory of a drive. If you have installed Devstudio under the root directory of a drive, then download this file.
 * Mfcbsc2.exe contains Mfc.bsc file created with Devstudio installed under Program Files directory. If you chose the default directory while installing Devstudio, then download this file.

If you have installed Devstudio in a path that does not match any of the above two, then download any one of the files and put it in the :\\vc\mfc\src directory. When you open the browse file and search for a symbol, the browser will not be able to find the sources. However, it will prompt you for the path and from then on it should be able to find the sources. This happens every time you open the browse file.

Copy the .exe to the :\vc\mfc\src and execute it. It should extract mfc.bsc file in that directory.

The following files are available for download from the Microsoft Download Center:

Download the MFCbsc1.exe package now.Download the MFCbsc2.exe package now. Release Date: June 30, 2000

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section of this article. This problem was corrected in Visual C++ version 6.0.



MORE INFORMATION
Alternatively, you can rebuild the MFC browser library (MFC.BSC) on your machine. First you must have the MFC source files installed.

Follow this procedure:  Verify that you have around 400 megabytes of free disk space on the drive where Visual C++ is installed. This much space is required to build the browse information. 358 megabytes is used by the .SBR files. The .SBR files can be freed once the browser database has been built. Temp files require the additional space. Temp files are automatically deleted. From a command prompt, run the Vcvars32.Bat which should be in the :\vc\bin to set the proper environment variables. Change to the :\Vc\Mfc\Src directory, and build the browse information by running the nmake on the makefile as follows:

nmake browseonly=1 no_pch=1 no_pdb=1 dll=2

This creates NafxeWD.bsc file and a subdirectory called $DLLD.W with .SBR files. Provided you do not plan to rebuild the browse database frequently, remove all files in the $DLLD.W directory, and then remove the directory itself. The intermediate .SBR files occupy roughly 358 megabytes of disk space and are not required to use the browser. You can rename the new browse file to Mfc.bsc from NafxeWD.bsc.</li></ol>

To use the browser file, follow these steps:
 * 1) Start Visual C++, and then click Open on the File menu.
 * 2) Choose the .BSC file that you just created.
 * 3) Click Tools, and then click Source Browser.

The Browser window appears and you can look up any of the MFC functions or data variables.

<div class="references_section">