Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Source Safe / August 2005

Tip: Looking for answers? Try searching our database.

Interop assemblies .Get() method fails

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matthew Etter - 25 Aug 2005 15:44 GMT
I'm having a problem with the IVSSItem interface, using the VS2005 Beta2
interop assemblies (MS.VS.SourceSafe.Interop) in a C# project. I am able to
use the VSSDatabase class to connect to a local store and retrieve the
version history for a source file. This all works great and returns me the
correct number of versions.
However, if I call IVSSItem.Get(), it doesn't retrieve the file. I have
tried invoking this on the base VSSItem, as well as the IVSSItems for each
of the versions. The destination folders exist, and I have tried several
combinations for the flags values (but all the samples in the docs use 0 for
the flag). The method call does not throw any exceptions, and since the
return type is void, I've got no idea how, where, or why this is failing. If
I use the command line (ss.exe get [params]), it works just fine, so there's
no problem with the source safe store.

Any ideas?

Thanks.
--Matthew
Kevin Yu [MSFT] - 26 Aug 2005 10:47 GMT
Hi Matthew,

The Get method accepts two parameters, the first one is local path to which
you want to get the file. This path must include the file name that you
wish to get. The second parameter is optional, which holds any flag
settings you want applied to the Get event. The default for this parameter
is 0.

You can check the following documents for the usage of Get method.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvss/html/
vssauto.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvss/html/
msdn_vssole.asp

Also, you can download a complete code sample for VSS automation from the
following link. It is very useful.

http://www.msdn.microsoft.com/vstudio/previous/ssafe/downloads/samples/

Kevin Yu
Signature

=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.