Hi,
I want to make the $History keyword expansion visible to my testers in
the About box of my C++ application - but how can I turn a multi-line
comment (the $History expansion) into the equivalent string?
I could easily write a program to do this (parse the file and
duplicate the comment as a string) - but it's not worth complicating
my build environment with another dependancy for this - so I'm looking
for different ideas.
How can I get the text of the following comment assigned to a string?
Alternately, can I get VSS to output $History as a C string literal?
/*
* $History: App_version.h $
*
* ************** Version 3 **********************
* User: Bill Date: 20/4/04 Time: 11:00a
* FIXED: Measurement feature no longere crashes.
* CHANGED: Autosave disabled by default.
*
* ************** Version 2 **********************
* User: Bill Date: 20/4/04 Time: 9:12a
* ADDED: Measurement feature.
*
* ************** Version 1 **********************
* User: Bill Date: 18/4/04 Time: 2:15p
* ADDED: About window added to project.
*/
Joe Masters - 07 May 2004 06:06 GMT
Because it's got multiple lines, you probably can't get it into a literal.
You could use one of the single line keywords, though.
#define VER "$Revision: $"
Or something like that.
Joe
> Hi,
>
[quoted text clipped - 26 lines]
> * ADDED: About window added to project.
> */