5,666,979 members and growing! (16,124 online)
Email Password   helpLost your password?
Web Development » Applications & Tools » Tools with source code     Intermediate

Sourcecode Control Switcher

By Soenke Schau

A tool to switch the Sourcecode Control Provider which is used in a development environment.
VC6, VC7, C++Windows, NT4, Win2K, WinXPVS.NET2002, VS6, Visual Studio, Dev

Posted: 13 May 2002
Updated: 8 Dec 2004
Views: 79,777
Bookmarked: 23 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
15 votes for this Article.
Popularity: 5.29 Rating: 4.50 out of 5
1 vote, 7.7%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
2 votes, 15.4%
4
10 votes, 76.9%
5

Introduction

This tool offers an interface to choose all installed SCC providers instead of just using the default provider in SCC integration.

Problem

MS has defined an interface between SCC systems, for applications that want to interact with these systems. The interface is exposed through a DLL supplied by the SCC provider. More than one SCC can be installed at one site, but one of them should be specified as the default SCC provider. Most tools - e.g. VCx - support only this default provider. Others like Kawa or VS.NET let you choose the one to use. As you can see, some tools in environments where people frequently switch between SCC providers are uncomfortable to use. You have to switch the SCC systems in the registry by hand.

Solution

Take this little program! It has three purposes:

  1. Give a visual clue to which SCC provider is currently active
  2. Provide an interface to change between SCC providers
  3. Start the UI of the current provider

Deployment

  1. Copy the program to a location you like.
  2. Start it, and it will add itself to the taskbar.
  3. Click with the right mouse button to display the menu.
  4. Choose the provider you like to use.

    Remember: the change will not be reflected in running apps. You must restart them to get the new setting.

  5. Choose "Start SCC Interface" or double click with the left button to start the user interface of the "current" provider.
  6. Click with the left button to display a menu with all SCC providers. Choose the one you'd like to start.
  7. If you like, add it to the "autostart" group via menu option.

UI Enhancement

To provide an icon for each SCC provider, create a registry value in the Provider section pointed to by the value <Provider Name> in the key: HKEY_LOCAL_MACHINE\Software\Microsoft\ SourceCodeControlProvider\InstalledSCCProviders. The value must be text and named IconDll. It must contain the complete path to the Image - Exe or DLL - which contains the icon. As an option, an icon index, separated from the path by a ',' can be supplied. Otherwise 1 will be used as the default index. You can find the correct index by opening the image in a Resource Editor.

For example:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SourceSafe]
  "IconDll"="C:\Programme\Microsoft Visual Studio\Vss\win32\Ssexp.exe,12"

will do in my Visual SourceSafe installation.

Problems

  • You should have write access to HKEY_LOCAL_MACHINE\Software\Microsoft\SourceCodeControlProvider. Otherwise the program will not start.
  • When you have no write access to HKEY_CURRENT_USER\Software\Windows\CurrentVersion\Run the Autostart option is disabled.
  • In Terminal server and XP, with the Userswitching feature, you can start SCCSwitcher multiple times. It will show up in each started session. When you switch to another provider, the change is only reflected in the current session. To automatically switch the other session too, we have to monitor the relevant registry section. But who really needs such a feature?

The program was written and tested on NT 4.0 SP6, W2K an XP Professional.

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

Soenke Schau



Occupation: Web Developer
Location: Germany Germany

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 20 of 20 (Total in Forum: 20) (Refresh)FirstPrevNext
GeneralAwsome!memberMIIKEL T9:08 13 Nov '08  
GeneralMany thanks!memberfreetheist7:37 29 Jul '08  
GeneralSweeeet!memberchuckjones11:00 24 Feb '08  
QuestionHow to Configure VS2003 with VSS2005memberpradeep92115:31 6 Sep '07  
QuestionSCCSwitcher copyright or licensing requirementsmemberszavala9:23 19 Apr '07  
AnswerRe: SCCSwitcher copyright or licensing requirementsmemberSoenke Schau10:20 24 Apr '07  
GeneralLifeSavermemberAlejoDuranAraya11:54 9 Apr '07  
GeneralWill this let me switch between VSS and ClearCase?memberJeff Porter7:27 3 Jan '06  
AnswerRe: Will this let me switch between VSS and ClearCase?memberSoenke Schau22:44 8 Jan '06  
GeneralThanks!memberJeffrey Odell13:33 8 Mar '05  
GeneralSource off site not in list...memberJim Rogers6:11 29 Jan '05  
GeneralRe: Source off site not in list...sussAnonymous21:00 30 Jan '05  
GeneralRe: Source off site not in list...memberJim Rogers3:52 1 Feb '05  
GeneralWhy executable and dll?memberrichman223:39 8 Dec '04  
GeneralRe: Why executable and dll?sussAnonymous21:03 30 Jan '05  
GeneralThank you very much!memberJust3Ws15:22 27 Sep '04  
GeneralDownloadable executablememberJoel Aufgang13:10 27 Jan '04  
GeneralRe: Downloadable executablemembernomondoan12:58 7 Dec '04  
GeneralRe: Downloadable executablememberSoenke Schau9:13 8 Dec '04  
GeneralBrilliant!memberannauzi0:37 9 Mar '07  

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

PermaLink | Privacy | Terms of Use
Last Updated: 8 Dec 2004
Editor: Smitha Vijayan
Copyright 2002 by Soenke Schau
Everything else Copyright © CodeProject, 1999-2008
Web10 | Advertise on the Code Project