SourceSafe Keyword Expansion Creator | CodeGuru

SourceSafe Keyword Expansion Creator

other mail Hubert Coupez I also use Visual source safe for more than two years so I wrote a file header macro creator. This macro inserts Visual SourceSafe’s keyword expansion depending of information found in the file. This macro checks for : class Interface class Implementation class Type library The Macro checks for more than […]

Written By
CodeGuru Staff
CodeGuru Staff
Mar 19, 1999
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

other mail Hubert Coupez

I also use Visual source safe for more than two years so I
wrote a file header macro creator.

This macro inserts Visual SourceSafe’s keyword expansion
depending of information found in the file.

This macro checks for :

  • class Interface
  • class Implementation
  • class Type library

The Macro checks for more than one class on the file, if there
is no class, or if the file hasn’t been saved.

A message box is opened to enter the file description. If
there is more than one class in the file, the macro inserts one
line for each class (interface or implementation) found in the
file.

The main function of the macro is InsertVssHeader()

The header include at the top of the file looks like:

  • for class Interface :
// File.h : Interface for the First Class
//
////////////////////////////////////////////////////////////////////////////
// Description :
//
/////////////////////////////////////////////////////////////////////////////
//
// $Header: $
// $Modtime: $

/* --------------------------------------------------------
 * $History: $
 *
 * --------------------------------------------------------
 */

 

  • For the class Implementation:
// File.cpp : implementation of the FirstClass class
//          : implementation of the SecondClass class
//
/////////////////////////////////////////////////////////////////////////////
//
// $Header: $
// $Modtime: $

/* --------------------------------------------------------
 * $History: $
 *
 * --------------------------------------------------------
 */

static char _CppVersion[] = "@(#) $Header: $"

 

  • For the class Type library:
// File.odl : type library source for FirstControl Control
//
/////////////////////////////////////////////////////////////////////////////
//
// $Header: $
// $Modtime: $

/* --------------------------------------------------------
 * $History: $
 * --------------------------------------------------------
 */

and in library section

typedef enum
{
[helpstring("@(#) $Header: $" )] OdlVersion = 0,
} enumVersion;

About the line included in .odl and .cpp file

@(#) $Header: $

this stuff allow to use the utilty ident who list the version
component of an exe, dll, ocx file

I post in a short time a tool to read this line on executable
or Dll.

Update:

  • fix for VC++6.0 on 12 February 1999

Download Macro File – 1.74 KB

Last updated: 19 March 1999

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.