RESOLUTION
- Use Keyword Expansion in Binary Files.
Use two colons in the keyword, for example:
$Revision:: $
WARNING: This method works for all the available keywords, with the
exception of the $History:: $ and $Log:: $ keywords. These two keywords
cannot be used in binary files.
Make sure you leave enough space between the second colon and the
dollar sign for the revision number.
When you use one colon, SourceSafe puts its information between the colon
and the dollar sign. Depending on how long the information is, and how many
spaces you had, this generally makes the whole string either shorter or
longer than it was at first. In a text file, this is not a problem, but it
does corrupt a binary file.
When you use two colons, that tells SourceSafe to keep the string length
the same. In other words, SourceSafe knows to keep the exact same number of
characters between the second colon and the dollar sign. SourceSafe pads
with extra spaces, or truncates the information, as necessary, in order to
keep things the same, so the binary file is not corrupted.
Available keywords for binary files are as follows:
$Archive:: $
$Author:: $
$Date:: $
$Header:: $
$Logfile:: $
$Modtime:: $
$Revision:: $
$Workfile:: $
$JustDate:: $
$NoKeywords:: $
- Disable keyword expansion in binary files using one of the following
methods:
- Add the case-sensitive keyword $NoKeywords: $ before adding any
other keywords. This prevents Visual SourceSafe from expanding
subsequent keywords.
- Remove *.xls from the "Expand keywords in files of type" textbox.
- Add !*.xls to the "Expand keywords in files of type" textbox.
NOTE: The preceding bullets are equivalent to editing the Keyword_Masks
variable manually in the SRCSAFE.INI file. Filetype *.xls is used in step 2
as an example.