Re: [fpc-pascal] Reading from exe directly on RAM

2008-04-16 Thread Tomas Hajny
On Wed, April 16, 2008 17:41, Marco Alvarado wrote: > Hello! I want to read data from my executable files. This data is > appended to the file, and would like to read it directly instead of > loading another copy of the file. I'm think on using a function like > this: > > function PeekExeByte(Byte

[fpc-pascal] Reading from exe directly on RAM

2008-04-16 Thread Marco Alvarado
Hello! I want to read data from my executable files. This data is appended to the file, and would like to read it directly instead of loading another copy of the file. I'm think on using a function like this: function PeekExeByte(Byte2Get: Integer): byte; Begin If Byte2Get < 1 then Exit; Resu