40: How can I write
(brand) something into my executables?
Here is the actual question that led me to
writing this item:
'I
am very interested in the .EXE
"branding"
techniques you use in
your TSUNTI unit. Would it be possible to
get hold of the
source
code for that unit, as it would save me from
having to
re-invent
the wheel?'
A: What you are
referring to is
BRANDEXE Store information within your program's .exe file (MS-
DOS 3.0+)
CHKSUMFN Checksum self-test to detect any tampering (MS-
DOS 3.0+)
USECOUNT Get the number of times the program has been used
Sorry no, I don't want to distribute my source codes from
ftp://garbo.uwasa.fi/pc/turbopas/ts/tspa3470.zip. Besides they
would
be less useful to you than you may think because internally my
programs are in Finnish, comments, variable and procedure
names, and
all. But I can hopefully help you by giving a reference to a similar
code. Please see Ohlsen & Stoker, Turbo Pascal Advanced
Techniques,
Que, 1989, p. 420.