home *** CD-ROM | disk | FTP | other *** search
- 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
- From: dpbsmith@world.std.com (Daniel P. B. Smith)
- Newsgroups: comp.os.ms-windows.programmer.tools
- Subject: Re: Can VB write over itself?
- Message-ID: <BtvKoA.78q@world.std.com>
- Date: 1 Sep 92 01:12:10 GMT
- References: <U=T.714494455@cansqnt> <1992Aug30.200217.9872@microsoft.com>
- Organization: The World Public Access UNIX, Brookline, MA
- Lines: 20
-
- Wow! Joe Robinson's approach (just treat the .EXE as a string and do
- a brutal search-n-replace) has a certain raw elegance to it that would
- never have occurred to me!
-
- I've had a similar problem (want to "stamp" or serialize each .EXE file
- I distribute). What I've been doing is to use the Resource Workshop
- (by Whitewater, I think, but distributed with Borland C++) to put a string
- resource in the .EXE. The problem is I can't figure out any good way to
- automate it. Windows seems to have stuff in its API for READING resources,
- but not for WRITING them.
-
- Maybe the approaches could be combined somehow? Is there any documentation
- from MS on what the resource format is? Maybe you could make the
- search-n-replace safer by making sure it occurs in the resource instead of
- the actual executable code itself?
-
-
- --
- Daniel P. B. Smith
- dpbsmith@world.std.com
-