The information in this article applies to:
SYMPTOMSWhen you use Visual SourceSafe (VSS) OLE automation to get a version of a file based on a project-level label, the following unexpected run-time error might occur:
CAUSEThis problem occurs when you are using a Visual SourceSafe version 5.0 database. RESOLUTIONDo one of the following to work around this problem:
STATUSThis behavior is by design. MORE INFORMATION
In the Visual SourceSafe Explorer, you can retrieve a particular version of
a file based on a project label by viewing the history of that file,
selecting the inherited project label, and clicking Get. Alternatively, you
can specify the file and the label from the command line.
When you access objects in a Visual SourceSafe 5.0 database, you need to add one more line of code. In the above sample, when the objSpecificVer object is set, the .VersionNumber property contains the correct version number of the File.txt based on the project label, assuming that a valid label is sent to the .Version property, but it still contains an invalid object. To work around this, add the following line of code just after you set objSpecificVer and just before you execute the Get method. For example:
This line sets objSpecificVer explicitly by using its own .VersionNumber property, from which the .Version property successfully returns a valid object. REFERENCES
For additional information, please see the following articles in the
Microsoft Knowledge Base: Additional query words: run-time runtime
Keywords : kbAutomation kbSSafe500 kbSSafe600 |
Last Reviewed: May 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |