PRB: Visual C++ Opens Project in Wrong VSS Database (184357)



The information in this article applies to:

  • Microsoft Visual SourceSafe for Windows 4.0
  • Microsoft Visual SourceSafe for Windows 4.0a
  • Microsoft Visual SourceSafe for Windows 5.0
  • Microsoft Visual SourceSafe for Windows 6.0
  • Microsoft Visual C++, 32-bit Enterprise Edition 5.0
  • Microsoft Visual C++, 32-bit Professional Edition 5.0

This article was previously published under Q184357

SYMPTOMS

When attempting to open a workspace from source control, the wrong database is displayed in the browse window.

CAUSE

When you attempt to open a workspace from source control, Visual C++ opens the database referenced by the following:
    HKEY_LOCAL_MACHINE\Software\Microsoft\SourceSafe = Value:    Current
    Database
				

RESOLUTION

Visual C++ can be forced to browse for a different database by using one of the two following methods:

  • Browsing for the correct database (from within the Visual SourceSafe Explorer) and selecting the "Open this database next time I run Visual SourceSafe" check box. This sets the path listed below to the desired VSS database:
           HKEY_LOCAL_MACHINE\Software\Microsoft\SourceSafe = Value:    Current
           Database
    						
  • Force Visual C++ to prompt the user to choose the correct database. In Developer Studio, from the Tools menu, select Options. Select the Source Control tab and then click the Advanced button. Choose the Integration tab and select the Prompt radio button in the "Choose SourceSafe Database" group.

STATUS

This behavior is by design.

Modification Type:MajorLast Reviewed:5/7/2001
Keywords:kbprb KB184357