Re: [fpc-pascal] Including binary data making easy

2012-08-29 Thread Rainer Stratmann
Am Wednesday 29 August 2012 12:36:08 schrieb Mark Morgan Lloyd: > Rainer Stratmann wrote: > > Am Wednesday 29 August 2012 11:59:01 schrieb Mark Morgan Lloyd: > >>> You are trying to make a very simple thing complicated. > >>> I know bytes with values from 0 to 255. I do not see an illegal > >>> cha

Re: [fpc-pascal] Including binary data making easy

2012-08-29 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: Am Wednesday 29 August 2012 11:59:01 schrieb Mark Morgan Lloyd: You are trying to make a very simple thing complicated. I know bytes with values from 0 to 255. I do not see an illegal character/byte there. If you read exactly I did not type $i but $ir which I think is not

Re: [fpc-pascal] Including binary data making easy

2012-08-29 Thread Rainer Stratmann
Am Wednesday 29 August 2012 11:59:01 schrieb Mark Morgan Lloyd: > > You are trying to make a very simple thing complicated. > > I know bytes with values from 0 to 255. I do not see an illegal > > character/byte there. If you read exactly I did not type $i but $ir which > > I think is not reserved f

Re: [fpc-pascal] Including binary data making easy

2012-08-29 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: Am Wednesday 29 August 2012 10:58:52 schrieb Mark Morgan Lloyd: Looking at the earlier thread, what you appear to be suggesting is some way of using $i for pulling binary data into your program. However, $i is by definition for including source fragments, if you want to m

Re: [fpc-pascal] Including binary data making easy

2012-08-29 Thread Rainer Stratmann
Am Wednesday 29 August 2012 10:58:52 schrieb Mark Morgan Lloyd: > Looking at the earlier thread, what you appear to be suggesting is some > way of using $i for pulling binary data into your program. However, $i > is by definition for including source fragments, if you want to merge > something that

Re: [fpc-pascal] Including binary data making easy

2012-08-29 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: On 27.08.2012 15:33, Rainer Stratmann wrote: Am Monday 23 March 2009 15:51:24 schrieb Jonas Maebe: Rainer Stratmann wrote on ma, 23 mrt 2009: Would this be possible? It is one of my great ideas to simplify programming. But every time Jonas reflexively look in his ar

Re: [fpc-pascal] Including binary data making easy

2012-08-29 Thread Rainer Stratmann
Am Tuesday 28 August 2012 19:44:49 schrieb Sven Barth: > On 28.08.2012 09:10, Jonas Maebe wrote: > > On 28 Aug 2012, at 09:03, Sven Barth wrote: > >> On 27.08.2012 15:33, Rainer Stratmann wrote: > >>> Am Monday 23 March 2009 15:51:24 schrieb Jonas Maebe: > Rainer Stratmann wrote on ma, 23 mrt

Re: [fpc-pascal] Including binary data making easy

2012-08-28 Thread Sven Barth
On 28.08.2012 09:10, Jonas Maebe wrote: On 28 Aug 2012, at 09:03, Sven Barth wrote: On 27.08.2012 15:33, Rainer Stratmann wrote: Am Monday 23 March 2009 15:51:24 schrieb Jonas Maebe: Rainer Stratmann wrote on ma, 23 mrt 2009: Would this be possible? // get access to the data of file.dat //

Re: [fpc-pascal] Including binary data making easy

2012-08-28 Thread Jonas Maebe
On 28 Aug 2012, at 09:03, Sven Barth wrote: > On 27.08.2012 15:33, Rainer Stratmann wrote: >> Am Monday 23 March 2009 15:51:24 schrieb Jonas Maebe: >>> Rainer Stratmann wrote on ma, 23 mrt 2009: Would this be possible? // get access to the data of file.dat // have 1 executabl

Re: [fpc-pascal] Including binary data making easy

2012-08-28 Thread Sven Barth
On 27.08.2012 15:33, Rainer Stratmann wrote: Am Monday 23 March 2009 15:51:24 schrieb Jonas Maebe: Rainer Stratmann wrote on ma, 23 mrt 2009: Would this be possible? // get access to the data of file.dat // have 1 executable file with containing all the data {$ir file.dat mydata} // include r

Re: [fpc-pascal] Including binary data making easy

2012-08-27 Thread geneb
On Tue, 28 Aug 2012, Zaher Dirkey wrote: On Mon, Mar 23, 2009 at 6:22 PM, Graeme Geldenhuys wrote: Ah, but you are missing the point. We are programmers. We do NOT forget! :-) I forgot that! No, you mis-remembered it. :) g. -- Proud owner of F-15C 80-0007 http://www.f15sim.com - The onl

Re: [fpc-pascal] Including binary data making easy

2012-08-27 Thread Zaher Dirkey
On Mon, Mar 23, 2009 at 5:09 PM, Michael Van Canneyt wrote: > You can use RCData resources, that works on all platforms. > Then you need to use LoadResource() > I Like so, to have this syntax {$r 'mysqlfile.sql' mysqlfile} or {$r 'mytextfile.txt' mytxtfile} and then use LoadResource to get it,

Re: [fpc-pascal] Including binary data making easy

2012-08-27 Thread Zaher Dirkey
On Mon, Mar 23, 2009 at 6:22 PM, Graeme Geldenhuys wrote: > Ah, but you are missing the point. We are programmers. We do NOT forget! > :-) > I forgot that! Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lis

Re: [fpc-pascal] Including binary data making easy

2012-08-27 Thread Rainer Stratmann
Am Monday 23 March 2009 15:51:24 schrieb Jonas Maebe: > Rainer Stratmann wrote on ma, 23 mrt 2009: > > Would this be possible? > > > > // get access to the data of file.dat > > // have 1 executable file with containing all the data > > > > {$ir file.dat mydata} // include resource or similar > > >

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Henry Vermaak
2009/3/23 Marco van de Voort : > In our previous episode, John Coppens said: >> >> > I have been using bin2obj for two years now. It works perfectly for >> > me, even though it's a (occasional) two step process. My application >> > changes more than the resource I include. >> >> ... and you can add

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Michael Van Canneyt
On Mon, 23 Mar 2009, Rainer Stratmann wrote: > Am Montag, 23. März 2009 18:18 schrieb Michael Van Canneyt: > > On Mon, 23 Mar 2009, Marco van de Voort wrote: > > > In our previous episode, John Coppens said: > > > > > I have been using bin2obj for two years now. It works perfectly for > > > > >

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Rainer Stratmann
Am Montag, 23. März 2009 18:18 schrieb Michael Van Canneyt: > On Mon, 23 Mar 2009, Marco van de Voort wrote: > > In our previous episode, John Coppens said: > > > > I have been using bin2obj for two years now. It works perfectly for > > > > me, even though it's a (occasional) two step process. My a

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Graeme Geldenhuys
On Mon, Mar 23, 2009 at 7:14 PM, John Coppens wrote: > > ... and you can add the conversion into the Makefile, so the conversion > happens automatically when the data changes. I program for the 21st century. I don't use Makefile's - they are so 80's. :-) Though Lazarus does help out here... you

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Michael Van Canneyt
On Mon, 23 Mar 2009, Marco van de Voort wrote: > In our previous episode, John Coppens said: > > > > > I have been using bin2obj for two years now. It works perfectly for > > > me, even though it's a (occasional) two step process. My application > > > changes more than the resource I include. >

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Marco van de Voort
In our previous episode, John Coppens said: > > > I have been using bin2obj for two years now. It works perfectly for > > me, even though it's a (occasional) two step process. My application > > changes more than the resource I include. > > ... and you can add the conversion into the Makefile, so

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread John Coppens
On Mon, 23 Mar 2009 18:22:15 +0200 Graeme Geldenhuys wrote: > I have been using bin2obj for two years now. It works perfectly for > me, even though it's a (occasional) two step process. My application > changes more than the resource I include. ... and you can add the conversion into the Makefil

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Graeme Geldenhuys
On Mon, Mar 23, 2009 at 5:35 PM, Rainer Stratmann wrote: > > Yes, this means also - as I understand it - that you have to make an > additional step to create the resource file. > For me it looks complicated. If a file's content is change then it can happen > that you forget to create the resource

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Rainer Stratmann
Am Montag, 23. März 2009 16:09 schrieb Michael Van Canneyt: > On Mon, 23 Mar 2009, Rainer Stratmann wrote: > > Am Montag, 23. März 2009 15:52 schrieb Michael Van Canneyt: > > > On Mon, 23 Mar 2009, Rainer Stratmann wrote: > > > > Would this be possible? > > > > > > > > // get access to the data of

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Michael Van Canneyt
On Mon, 23 Mar 2009, Rainer Stratmann wrote: > Am Montag, 23. März 2009 15:52 schrieb Michael Van Canneyt: > > On Mon, 23 Mar 2009, Rainer Stratmann wrote: > > > Would this be possible? > > > > > > // get access to the data of file.dat > > > // have 1 executable file with containing all the data

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Rainer Stratmann
Am Montag, 23. März 2009 15:52 schrieb Michael Van Canneyt: > On Mon, 23 Mar 2009, Rainer Stratmann wrote: > > Would this be possible? > > > > // get access to the data of file.dat > > // have 1 executable file with containing all the data > > > > {$ir file.dat mydata} // include resource or simila

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Michael Van Canneyt
On Mon, 23 Mar 2009, Rainer Stratmann wrote: > Would this be possible? > > // get access to the data of file.dat > // have 1 executable file with containing all the data > > {$ir file.dat mydata} // include resource or similar > > // fpc compiler makes this > const > mydata : array[ 0 .. 4 ]

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Jonas Maebe
Rainer Stratmann wrote on ma, 23 mrt 2009: Would this be possible? // get access to the data of file.dat // have 1 executable file with containing all the data {$ir file.dat mydata} // include resource or similar // fpc compiler makes this const mydata : array[ 0 .. 4 ] of byte = ($45,$44,$

[fpc-pascal] Including binary data making easy

2009-03-23 Thread Rainer Stratmann
Would this be possible? // get access to the data of file.dat // have 1 executable file with containing all the data {$ir file.dat mydata} // include resource or similar // fpc compiler makes this const mydata : array[ 0 .. 4 ] of byte = ($45,$44,$63,$76,$55); // file data // the length can f