home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8179 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.3 KB

  1. Path: sparky!uunet!gatech!rutgers!news.cs.indiana.edu!bobmon@sandshark.cs.indiana.edu
  2. From: bobmon@sandshark.cs.indiana.edu (Bob Montante)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: changes to exe (binary) file
  5. Message-ID: <1992Jul30.123512.17763@news.cs.indiana.edu>
  6. Date: 30 Jul 92 17:35:08 GMT
  7. References: <1992Jul29.125540.7401@hou.amoco.com> <1992Jul30.152020.8261@menudo.uh.edu> <Bs7nEp.JLt@knot.ccs.queensu.ca>
  8. Organization: dyskaryotic
  9. Lines: 16
  10.  
  11. One approach is to organize your changeable information in a structure
  12. that has some simple tag, such as an ASCII character string, at the
  13. beginning.  (A version I.D. would work well.)  Then your configuration-
  14. changing program can simply search the executable for that ASCII character
  15. string, and make changes at known locations relative to the string.  If
  16. you don't *find* the string, then it's the wrong executable, or it's
  17. been compressed, or something else has changed in it (which probably
  18. means it can't be altered anyway).  As long as you preserve the data
  19. structure, your configuration program should (may) work with subsequent
  20. versions of your executable program.
  21.  
  22. Claimer:  I thought up this idea for use in my HP-00 calculator program,
  23. and others may have thought of it too; so don't try to patent it.  If
  24. you're really impressed with it, use my name as the ASCII string :-)
  25.  
  26. -bob,mon.
  27.