Dee Earley
5/21/2010 9:17:00 AM
On 21/05/2010 03:45, Claire wrote:
> Hello,
> I came across the following problem.
> After compiling my app into executable I want to insert into it some data
> (few bytes), probably at the end of the file.
> How can I programmatically read those bytes from within the same code?
You can use a resource file with a known marker in that you replace, and
can be read easily in your app using LoadResData() or append to the end
of the executable (data on the end won't effect the exe) and read it
using normal file I/O.
The resource method means you have an upper/fixed limit on size, but it
depends on the data itself as to whether that will be a problem or not.
--
Dee Earley (dee.earley@icode.co.uk)
i-Catcher Development Team
iCode Systems
(Replies direct to my email address will be ignored.
Please reply to the group.)