Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Source Safe / May 2004

Tip: Looking for answers? Try searching our database.

[VSS] $History - How to view at C++ program runtime

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tom Hanks - 30 Apr 2004 03:09 GMT
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.
>  */

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.