The leading provider of version control solution and TWAIN SDK
The leading provider of version control solution and TWAIN SDK

Dynamsoft Forums

Support for Version Control, Bug Tracking and Configuration Management Software
* Login   * Register
* FAQ    * Search

It is currently Sat Feb 11, 2012 1:01 pm




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Handling Check in events in VS 2005
PostPosted: Mon May 05, 2008 2:31 am 
Offline

Joined: Mon May 05, 2008 1:38 am
Posts: 15
hi;
I m trying to handle the check in events in vs 2005 by using com sdk.
By reading the sdk help file i conclude that i need to use OnOperationResultSend event but i m not found any code examples for this event. if u can send me some code snipet regarding this it will be great.

Note: My Scenario is if any vss user check in the file then that event should get handled. so far i had created one windows application using .net 2005 i m able to log in to saw database using com sdk but i m Struggling to handle check in event .

[/code][/quote]


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 10:57 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1482
We are glad to provide some code snipet for you. But before doing that, we want to make sure OnOperationResultSend event is what you are looking for.

OnOperationResultSend event will be fired only for the current VSS user. The operations done by other VSS users will not trigger the event. Is this what you are looking for?

Have a nice day.

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 06, 2008 9:52 am 
Offline

Joined: Mon May 05, 2008 1:38 am
Posts: 15
yes i wanted the same
user specific event should be fired & if the code able to handle the events both from vs 2005 IDE & SAW WINDOWS IDE then it will be nice..

Thanks
sameer;


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 07, 2008 11:18 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1482
Hi Sameer,

The event will only be fired if SDK is used.

The event will not be fired if Visual Studio 2005 IDE or SAW Windows Client is used.

Thanks.

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 07, 2008 11:07 pm 
Offline

Joined: Mon May 05, 2008 1:38 am
Posts: 15
so is there any way to cope with this situation.
i want if any vss users check in the file either from saw windows client
or vs IDE Then it should be handled by a seperate windows application
which will use sdk dll.
or do i need to create a custom windows application using sdk & integrate
with vs 2005 ide let me know if those things are possible..

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 11, 2008 11:01 pm 
Offline

Joined: Mon May 05, 2008 1:38 am
Posts: 15
Hi Catherine;
i jsut read the article from msdn abt vss automation following are the links.
1.For vss 2005:
http://msdn.microsoft.com/en-us/library/hcdf9zk2(VS.80).aspx

2.For vss (vb 6.0) :
http://msdn.microsoft.com/en-us/library/bb509341(VS.80).aspx

By using Microsoft.VisualStudio.SourceSafe.Interop.dll or Interop.SourceSafeTypeLib.dll (for vb6 vss)i m able to handle the client specific events thanks to ProgID & it handles events from vss ide & visual studio ide as well (vs ide source control provider must be Microsoft visual source safe). It perfectly Satisfies my requirement .

Is it possile to do the same by using saw. As my Vs Ide source control provider is saw.& my Source safe database is in U.S.(United States) & developers are in India so developers are using Saw as it is much Faster in performance .
So can i get any interop from saw which has the same functionality of Interop.SourceSafeTypeLib.dll (as i m using vss (vb 6.0) )

Waiting for Your reply...
Thanks
Sameer; :cry:


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 12, 2008 9:33 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1482
The events in Interop.SourceSafeTypeLib.dll are only fired for the current user. Not for other users.

Now, there are two ways to handle events when SourceAnywhere is used:
1. Use Interop.SourceSafeTypeLib.dll to handle events on the SourceAnywhere for VSS server machine. Since all operations of SourceAnywhere for VSS are done through VSS API, the SourceSafe events will be fired on the SAW for VSS server machine whenever a SourceAnywhere for VSS user tries to do operations, such as check in or check out file.

2. Just like what you have said, build your own application with SourceAnywhere for VSS SDK.

Thanks.

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 13, 2008 6:41 am 
Offline

Joined: Mon May 05, 2008 1:38 am
Posts: 15
ok catherine .
for u r two solution i had following doubt
1.limitation of the IVSS events using is that all of the action occurs on the client side, so each client must have the add-in installed for it to behave properly. i try my code but it fails when i check in from saw it works perfectly if i use microsoft source safe instance.
if u had any doubt then i can send u my code snipet.
i m using same code which is mention on http://msdn.microsoft.com/en-us/library/hcdf9zk2(VS.80).aspx
only change is i m using Interop.SourceSafeTypeLib.dll rather than
Microsoft.VisualStudio.SourceSafe.Interop.dll
2.if i create my own windows application then can i integrate with visual studio just like saw windows client..

i might be asking too many questions but u r prompt help can make my life easier. i would like to explain u my scenario in brief.
in my company we are using saw server, cache server & saw cleint
as source safe database is hosted on remote server(its in U.S.)
Within our vss database we are having development,test & Production
branch.
if any developer is doing some changes in devlopment branch then those files needs to be moved on test & production branch.
currently developer are creating document which mentions the file name & vss version bcz some of the fileswhich are changed & checked in but he dont want to release it on production . so with the help of document we
manually moves the files to the test & production branches & the no of files are more than 1000 so it takes too much time & some times results in to manual mistakes.
to cope with this situation i need some add ins installed on every developer machine so if they check in any file i can show them message whether they wants to move the files to production or not .if that happens
i can create a build script which will be used by Nant(Build automation tool for .net) .
My only problem is we are not using Microsoft source safe & we cant use
it as saw gives faster performance for vss access.
if u r having any updates abt handling the vss events for the current user on their machine itself using saw then plz alert me ..

Thanks for u r help;

sameer


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 14, 2008 11:54 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1482
1. When you check in files through SourceAnywhere for VSS, the VSS event will not be triggered on the client side, since VSS is not used. However, the event will be triggered on the SourceAnywhere for VSS server side, since SourceAnywhere for VSS uses VSS API to check in the files.

2. If you can create your own application I am sure your requirement will be met, but there would be a lot of work.

Thanks for your information. My recommendation is that instead of letting the developers make notes in some file, why not let them update the files in the branch (if they are not allowed to operate on the test/production branch, you can create a buffer branch for them) directly? So the only thing the SCM admin needs to do is to get the files from that branch.

Thanks.

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 15, 2008 1:06 am 
Offline

Joined: Mon May 05, 2008 1:38 am
Posts: 15
Thanks Catherine ;
can u give me the code snipet to handle the events triggered on the SourceAnywhere for VSS server . so i can atleast create a report for modified files. why i need this bcz my report or document actually has the bug id so i can track how many files are changed for perticular bug.

Thanks
Sameer;


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 19, 2008 1:01 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1482
For the code sample, you can go to Microsoft site to get one. The link you mentioned has one of the samples:
http://msdn.microsoft.com/en-us/library/hcdf9zk2(VS.80).aspx

Thanks.

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 08, 2008 5:17 am 
Offline

Joined: Mon May 05, 2008 1:38 am
Posts: 15
Hi Catherine;

finally i decided to create a custom application using saw sdk.
i m using GetProjectHistory method to show the users the the project history between two dates .
checked in files are shown correctly but for newly added files complete path is not shown any suggestion on this issue.
also while using GetFileHistory how can i exclude the labels from history.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 09, 2008 2:00 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1482
Thank you for getting back to us.

>checked in files are shown correctly but for newly added files complete path is not shown

Can you let us know what "complete path" means? Does that mean in the history you can only see the file name without the path? Or does the "Newly added files" mean the files you newly add in Visual Studio solution explorer? If yes, the files will not in VSS database until you checked them in. You cannot get the file history for the files that are not in VSS DB.

Currently, there is no parameter to exclude the labels from history in GetFileHistory method. I have added it into our issue tracking system for consideration of a future release.

Thanks.

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: issue with newly added files
PostPosted: Fri Jul 11, 2008 4:43 am 
Offline

Joined: Mon May 05, 2008 1:38 am
Posts: 15
if i add a new file in solution & check in the project including the newly added file then GetProjectHistory method shows the action as added
and ProjectHistory.FileName shows only the path up to the folders in which files are added not shows the filenames which are added.
it also shows me the check in action but in that only the project file i.e. csproj [c# project file] is getting diplayed .
it should show me the project file as well as newly added files as i m checking in entire project along with newly added files.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 15, 2008 7:12 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1482
Checking in the newly added files in Visual Studio actually adds the files to VSS DB, so you will see the action type for these files is added.

>ProjectHistory.FileName shows only the path up to the folders in which files are added not shows the filenames which are added

The reason for this issue is that VSS API does not return the filename information.

Thanks.

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

It is currently Sat Feb 11, 2012 1:01 pm


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog