Article View: comp.os.ms-windows.programmer.tools
Article #353Re: Can VB write over itself?
From: Daniel P. B. Smith
Date: Tue, 01 Sep 1992 01:12
Date: Tue, 01 Sep 1992 01:12
20 lines
1405 bytes
1405 bytes
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
Technical Details
Message-ID:
<BtvKoA.78q@world.std.com>Path:
arc1-ca.pugleaf.net!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!dpbsmithReferences:
<U=T.714494455@cansqnt> <1992Aug30.200217.9872@microsoft.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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