home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!charnel!rat!usc!sdd.hp.com!ux1.cso.uiuc.edu!usenet.ucs.indiana.edu!cineret!shulick
- From: shulick@cineret.ucs.indiana.edu (Sam Hulick)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Version Strings...
- Message-ID: <C0Hv6B.F6n@usenet.ucs.indiana.edu>
- Date: 7 Jan 93 17:27:47 GMT
- References: <Leon.0byx@abcd.Houghton.MI.US>
- Sender: news@usenet.ucs.indiana.edu (USENET News System)
- Organization: Vallen Software
- Lines: 17
- Nntp-Posting-Host: cineret.ucs.indiana.edu
-
-
- I usually put this in the global area of the program:
-
- char verStr[] = "$VER: Foobar version 1.1111";
-
- The "version" program merely searches thru the executable looking for
- "$VER:". So even this would work:
-
- printf("$VER: Foobar version 1.1111");
-
- although I'm sure you wouldn't want this printed at every runtime. :)
-
- --
- // Amiga 3000 ___ \ Sam Hulick: shulick@indiana.edu (NeXTmail OK!)
- // 68030 25 MHz /__/\ \ My opinions wear combat boots. Or whatever.
- \\// OS 2.04 \__\/ / "Walk! Not bloody likely. I am going in a
- \/ / taxi." --George Bernard Shaw
-