🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11634

Re: add config data to end of file

#11634
From: Hans the mailman
Date: Mon, 26 Jan 2004 21:22
38 lines
2333 bytes
Thanks for your input martin, i have also created one in the past similar to
what you have said and agree with you totally, i think i will go with a
mixture of what i have done in the past mixed with some input from the
replies to my post.
Thanks to all.. Even Mr Hans.

"Martin Moeller" <martin.moeller@moema.it> wrote in message
news:40152c54@newsgroups.borland.com...
>
> "borland" <rogersmail@ntlworld.com> ha scritto nel messaggio
> news:4011c9b5@newsgroups.borland.com...
>
> > He wants these settings and images
> > embeded into the standalone exe file,
>
> I've done something similiar for security in a very remote past. As a
matter
> of fact, you can not open your *own* exe, but you can open any other one.
>
> - Include in your exe a global array large enough for your data &
initialize
> the first bytes with a unique string.
> - Write a second program as a short utility, which opens the 'real' exe as
a
> bin file and searches that particular string.
>
> You know the array size: that's the area you can overwrite without
problems.
>
> My utility had also a version related ID and with a proper comand line
> argument would just display the adress. Next step was to set the found
> adress into the utility's source and recompile in order to allow also
> multiple modifications of the same exe, i.e. those not having the original
> search string any more.
>
> Rgds, Martin
>
>
Technical Details
Message-ID: <401584f2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4011c9b5@newsgroups.borland.com> <40152c54@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9f584b16be099db2
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-26 13:40:57 PST
From: "Hans the mailman" <rogersmail@ntlworld.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4011c9b5@newsgroups.borland.com> <40152c54@newsgroups.borland.com>
Subject: Re: add config data to end of file
Date: Mon, 26 Jan 2004 21:22:12 -0000
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 62.255.40.190
Message-ID: <401584f2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075152114 62.255.40.190 (26 Jan 2004 13:21:54 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail