🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: add config data to end of file

#11758
From: borland
Date: Sat, 24 Jan 2004 01:57
38 lines
2517 bytes
I already have a file that adds certain logon data to the end of the file
but i did it by reading in the stream and saving to an alternateive name..
The problem i have is that he doesn't want the image to be available to
other to allow them to either replace or change it..
The only ideas i have come up with so far it to write a header preceeded
with a magic number at the end of the stream which will give the image and
data sizes to read and offsets to the magic nunber..
Is it possible to create a dll at runtime and fill it with data so i can at
least ask if he will  be happy with an exe and one dll..



"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:4011cfd3$1@newsgroups.borland.com...
>
> "borland" <rogersmail@ntlworld.com> wrote in message
> news:4011c9b5@newsgroups.borland.com...
>
> > He wants these settings and images embeded into
> > the standalone exe file, is this possible
>
> Not easily.  Applications are not allowed to alter their own executable
file
> while it is still running.  Configuration should be stored elsewhere,
either
> in a separate file, or in the Registry.
>
> As for the spashscreen, the simpliest solution without requiring the
> application to be recompiled each time, is to make the application simply
> look for a particular filename in a specific folder at runtime, and if
found
> then load and display it as needed.  The user/customer can then simply
> provide the desired image file for each installation.
>
>
> Gambit
>
>
Technical Details
Message-ID: <4011d110@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4011c9b5@newsgroups.borland.com> <4011cfd3$1@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-23 18:09:32 PST
From: "borland" <rogersmail@ntlworld.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4011c9b5@newsgroups.borland.com> <4011cfd3$1@newsgroups.borland.com>
Subject: Re: add config data to end of file
Date: Sat, 24 Jan 2004 01:57:41 -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.21
Message-ID: <4011d110@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074909456 62.255.40.21 (23 Jan 2004 17:57:36 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail