home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / programm / tools / 813 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.3 KB

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!rutgers!micro-heart-of-gold.mit.edu!bu.edu!Shiva.COM!world!dpbsmith
  2. From: dpbsmith@world.std.com (Daniel P. B. Smith)
  3. Newsgroups: comp.os.ms-windows.programmer.tools
  4. Subject: Re: Can VB write over itself?
  5. Message-ID: <BtvKoA.78q@world.std.com>
  6. Date: 1 Sep 92 01:12:10 GMT
  7. References: <U=T.714494455@cansqnt> <1992Aug30.200217.9872@microsoft.com>
  8. Organization: The World Public Access UNIX, Brookline, MA
  9. Lines: 20
  10.  
  11. Wow! Joe Robinson's approach (just treat the .EXE as a string and do
  12. a brutal search-n-replace) has a certain raw elegance to it that would
  13. never have occurred to me!
  14.  
  15. I've had a similar problem (want to "stamp" or serialize each .EXE file
  16. I distribute).  What I've been doing is to use the Resource Workshop
  17. (by Whitewater, I think, but distributed with Borland C++) to put a string
  18. resource in the .EXE.  The problem is I can't figure out any good way to
  19. automate it.  Windows seems to have stuff in its API for READING resources,
  20. but not for WRITING them.  
  21.  
  22. Maybe the approaches could be combined somehow?  Is there any documentation
  23. from MS on what the resource format is?  Maybe you could make the 
  24. search-n-replace safer by making sure it occurs in the resource instead of
  25. the actual executable code itself?
  26.  
  27.  
  28. -- 
  29. Daniel P. B. Smith
  30. dpbsmith@world.std.com
  31.