home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18299 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.1 KB

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