Microsoft Knowledge Base Email Alertz

KBAlertz.com: (155055) - Visual Basic Forms and other files can be located anywhere on any machine. The .VBP file contains pointers to these files wherever they may be located. Visual SourceSafe needs to have the project files somewhere in the working directory structure in...

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **


Community Site



We Send hundreds of thousands of emails using ASP.NET Email


ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 155055 - Last Review: July 14, 2004 - Revision: 2.1

PRB: Problem Adding VB File from Other Drive to VSS Project

This article was previously published under Q155055

On This Page

SYMPTOMS

Visual Basic Forms and other files can be located anywhere on any machine. The .VBP file contains pointers to these files wherever they may be located. Visual SourceSafe needs to have the project files somewhere in the working directory structure in order to make the mapping association with the project. If this mapping association is not followed, the glyphs that represent file status may be incorrect.

For example, a file's glyph in the SourceSafe Explorer may indicate that the file is under source code control and not checked out (for instance, the file is read-only) while the Visual Basic glyph may say that the file is writable. This behavior occurs because the .VBP file is looking at one file and Visual SourceSafe is looking at a different copy of the same file.

CAUSE

The Form on the different drive is a read/write file. The form in the working directory is a read-only file. Visual Basic is still looking at the file on the different drive while Visual SourceSafe is looking at the file in the working directory.

RESOLUTION

Save the project (File, Save Project), and then refresh the project (Add- Ins, SourceSafe, Refresh File Status). These two steps update the .VBP file so it is looking at the file written for that project in the SourceSafe Working Directory. The original file still exists in the location where it was originally saved, but the Visual Basic project no longer points to it.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Start Visual Basic 4.0. Form1 is created by default.
  2. Start up the Source Code Control Options (Add-Ins, SourceSafe, Options). Set "Add files to source control when adding them to Visual Basic" to NO.
  3. Open a Visual Basic project that is under source code control. Check the files out. Add a new form to the Visual Basic project and save this new form to a different drive.
  4. Run the following SourceSafe command:
    "Add-Ins, SourceSafe, Add files to SourceSafe..."
    and select the newly-saved form.

    The following informational message will be displayed:
    File <path on different drive>\<newform>.frm could not be mapped to the SourceSafe project $/<SourceSafe Project>. Copy the file to <working directory path>?
  5. Answer YES to the message. The following message is then displayed:
    "Please save and check-in your Visual Basic project file. Otherwise your project will contain references to the remapped files in their old locations instead of their current locations."
    NOTE: The glyph for the form shows that the form is under source code control but its checkin/checkout status is not defined.
  6. Save the project. Check in the project file. At this point, the glyphs display as they should.
The original copy of the form is still located on the different drive. In addition, the new copy of the form is located in the project working directory. Only the new copy of the form is pointed to by the .VBP and updated with Visual SourceSafe. The old copy will need to be deleted manually.

APPLIES TO
  • Microsoft Visual SourceSafe 4.0 Standard Edition
  • Microsoft Visual SourceSafe 5.0 Standard Edition
  • Microsoft Visual Basic 4.0 16-bit Enterprise Edition
  • Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
Keywords: 
kbprb KB155055
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please