5,548,129 members and growing! (19,034 online)
Email Password   helpLost your password?
Web Development » Applications & Tools » Tools with source code     Intermediate

Effective SourceSafe - shell extension for SourceSafe

By David Y. Zhao

A shell extension enabling basic SourceSafe functionalities in Windows shell.
C++Win2K, WinXP, Windows, Visual Studio, Dev

Posted: 4 Jan 2002
Updated: 7 Jan 2002
Views: 104,726
Bookmarked: 55 times
Announcements
Want a new Job?



Search    
Advanced Search
Sitemap
22 votes for this Article.
Popularity: 4.91 Rating: 3.66 out of 5
2 votes, 20.0%
1
1 vote, 10.0%
2
1 vote, 10.0%
3
2 votes, 20.0%
4
4 votes, 40.0%
5

Sample Image - screen.gif

Introduction

Effective SourceSafe is a shell extension enabling basic SourceSafe functionalities in Windows shell. With this extension you can check in/out your source files directly in Windows Explorer. It has only been tested under Windows 2000/XP with SourceSafe 6.0, but it should work on older versions too. However, overlay icons will require ME or later.

Installation

For installation, type the following command in Start->Run:

regsvr32 x:\path_to_this_file\EssShell.dll

For uninstallation, type the following command in Start->Run:

regsvr32 /u x:\path_to_this_file\EssShell.dll

Then you must restart Windows Explorer by either logoff and login or restarting computer, otherwise the Ess icons won't be loaded by Explorer.

Connects to SourceSafe database

You need to specify a profile (VssShell.ini file) to specify SourceSafe database, and which files to be included for the shell extension. A typical profile looks like:

[Common]
profiles = 1
OverlayIcons = true

[Profile_1]
VSSData = E:\VSSData\srcsafe.ini
User = David Yuheng Zhao
Pwd = 
VSSRoot = $/
LocalRoot = E:\Projects\
Include_1 = *.*
Exclude_1 = *\Debug\*.*
Exclude_2 = *\*Release*\*.*
Exclude_3 = *\Output\*.*
Exclude_4 = *.bsc
Exclude_5 = *.ilk
Exclude_6 = *.obj
Exclude_7 = *.res
Exclude_8 = *.pch
Exclude_9 = *.pdb
Exclude_10 = *.aps
Exclude_11 = *.vssscc
Exclude_12 = *.*~*
Exclude_13 = *.scc
Exclude_14 = dlldata.c
Exclude_15 = *.ncb
Exclude_16 = *.positions
Exclude_17 = *_i.c
Exclude_18 = *_p.c
Exclude_19 = *_h.h
Exclude_20 = *.tmp
Exclude_21 = thumbs.db

You must specify the correct path to the SourceSafe database (VSSData), user name (User) and password (Pwd). Then you also need to specify a project (VSSRoot) from VSS (e.g. $/ or $/my_project/) and the corresponding local path (LocalRoot).

Files to be monitored are defined by "include" and "exclude" rules, the default rules are for Visual C++ projects where compiler generated files are excluded.

The INI file will be reloaded automatically when you save the file.

Usage

If you have given correct parameters in essshell.ini, you should get some additional menu items when you right click any source file in the project folder. Please note that only relevant actions are available:

  • Add to source control
  • Get latest version
  • Check out
  • Check in
  • Undo check out
  • Exclude from source control * (Not implemented yet)
  • Delete at source control*
  • About ..

Items marked with (*) are only displayed when you hold shift key when you right click at the item. When you hold shift key, (R) may appear on several menu items, then these commands will be performed recursively.

Known issues

  • Performance - Windows Explorer may become slower when you enable the overlay icons, which shows whether a file is checked out. You can disable that by setting OverlayIcons to false.
  • Use default settings only - The shell extension uses default SourceSafe settings only, and you will be ignored when you get a file which is already checked out. I will work on this when I have time.
  • Crash in File Open/Save Dialog - If you browse to a project folder in a file open/save dialog and then close the dialog immediately, the application may crash. The reason is that ESS caches SourceSafe object for about 250 ms before it cleans up. This speeds up the redraw of overlay icons. If you close the window before cleaning, the object will be destroyed at DLL_PROCESS_DETACH and an exception arises. If you are familiar with this kind of problem, please advise me. You can disable overlay icon to avoid this problem, or just wait for a while before closing any open/save dialog.
  • Bugs - As the version is only 0.1, some bugs will be expected. Please send me a message here and I will try to figure it out.

Latest version

Freeware

Effective SourceSafe is a freeware, so use it freely. If you like it and find it useful, please tell your friends about it. The latest information will be available here.

Version 0.1

Copyright © Ministars Software & David Y. Zhao 2001-2002.

All rights reserved.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

David Y. Zhao



Occupation: Web Developer
Location: Sweden Sweden

Other popular Applications & Tools articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 25 of 32 (Total in Forum: 32) (Refresh)FirstPrevNext
Subject  Author Date 
Generaldont workmemberThomaz Luiz de Torres Bandeira.8:19 11 Dec '07  
GeneralDon't Works here...memberThomaz Luiz de Torres Bandeira.8:18 11 Dec '07  
GeneralDon't Works here...memberThomaz Luiz de Torres Bandeira.8:17 11 Dec '07  
GeneralOther free shell extension for SourceSafe - SourceXplorememberachirlin10:34 19 Jul '07  
GeneralOther SCC Shell ExtensionsmemberDamian Powell1:08 14 Jul '03  
GeneralThe source code is released at sourceforge.netmemberDavid Y. Zhao9:32 28 Jan '03  
GeneralRe: The source code is released at sourceforge.netmemberfifi12:23 8 Mar '03  
GeneralRe: The source code is there @ sourceforge :-)sussJornH7:38 9 Feb '04  
GeneralRe: The source code is there @ sourceforge :-)memberMickey Perlstein4:14 3 Apr '06  
GeneralSourceCode and websitemembermloibl22:16 16 Jan '03  
GeneralSource code will be released soonmemberDavid Y. Zhao23:24 16 Jan '03  
Generalif anyone's interestedsussJohn McKeeth2:25 12 Dec '02  
GeneralRe: Thanks!sussAnonymous12:29 12 Dec '02  
GeneralI'm getting nothing as wellmemberEnder_JC22:38 11 Dec '02  
GeneralRe: I'm getting nothing as wellmemberSteveCulshaw2:48 12 Dec '02  
GeneralBasic - how to installmemberSteveCulshaw23:08 3 Dec '02  
GeneralRe: Basic - how to installmemberSteveCulshaw2:00 11 Dec '02  
GeneralEffective SourceSafe - Shell extension on NT 4.0memberJeff Antonson12:22 19 Jun '02  
GeneralWrong check out statusmemberAndrei Green4:03 12 Jun '02  
GeneralHow about multiple sourcesafe database?memberAnonymous19:13 6 May '02  
GeneralCheck Out Icon too SmallmemberKevin M.5:38 7 Feb '02  
GeneralSuggestions to improve ESSmemberBilby23:11 21 Jan '02  
GeneralVersion 0.3 releasememberDavid Y. Zhao12:33 9 Jan '02  
GeneralUseful, but..memberSerge Weinstock3:59 6 Jan '02  
GeneralRe: Useful, but..memberMichael J Resar13:12 7 Jan '02  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 7 Jan 2002
Editor: Smitha Vijayan
Copyright 2002 by David Y. Zhao
Everything else Copyright © CodeProject, 1999-2008
Web18 | Advertise on the Code Project