Microsoft KB Archive/156872

= BUG: Errors Checking In or Out a Custom Resource File (.RES) =

Article ID: 156872

Article Last Modified on 6/24/2004

-

APPLIES TO


 * Microsoft Visual SourceSafe 4.0 Standard Edition
 * Microsoft Visual SourceSafe 5.0 Standard Edition
 * Microsoft Visual SourceSafe 4.0 Standard Edition
 * Microsoft Visual Basic 4.0 16-bit Enterprise Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
 * Microsoft Visual SourceSafe 4.0a
 * Microsoft Visual SourceSafe 5.0 Standard Edition

-



This article was previously published under Q156872



SYMPTOMS
If your Visual Basic project uses a Resource (.RES) file and is under Source Code Control with Visual SourceSafe, you may receive the following error message when checking in just the .RES file:

Can't load file \ .RES in the Visual Basic project. Ensure the Visual Basic project file is checked out.



CAUSE
Visual Basic fails to reload the file when Visual SourceSafe calls the reload method on the project template item for .RES file.



WORKAROUND
If the .VBP file is checked out when the .RES file is being checked in, the error message can be ignored.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Problem
 Open a Visual Basic project that contains a custom Resource File (.RES). Add the project to Source Code Control. Check out the entire project (including the .VBP). Check in just the .RES file. The following error message will display:

Can't load file \ .RES in the Visual Basic project. Ensure the Visual Basic project file is checked out.

 Click OK. The .RES file is checked in and everything else is still checked out.</li> Check out just the .RES file. The above error message will display again.</li> Click OK. The .RES file is checked out and everything else is still checked out.</li></ol>

Keywords: kbbug KB156872

-

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

© Microsoft Corporation. All rights reserved.