[RE: [Re: [lazarus] How are we going to store component data?]]
michael at tfdec1.fys.kuleuven.ac.be
michael at tfdec1.fys.kuleuven.ac.be
Wed Jul 21 18:52:52 EDT 1999
On Wed, 21 Jul 1999, Michael A. Hess wrote:
> michael at tfdec1.fys.kuleuven.ac.be wrote:
> >
> > I think we should make some resource compiler after all. We'll need it
> > anyhow. On windows we can simply use Windows resources; on other
> > platforms we can do something else.
>
> OK. Were do we start?
Start by studing the XML reader; from that it will be pretty obvious
what to do; all that needs to be done is to
a) Define your XML document. xmlread will read it and make a DOM structure
out of it.
b) Define how you want to use resources;
c) Adapt the xmlwrite unit so it writes a resource file instead of a
text file, starting from the DOM structure;
d) compile the resource file.
e) link the resource file
Steps a-d should be done by the IDE. Step e is done by the compiler.
In principle, we can easily define a resource section in the FPC
binaries, it's just a matter of conventions. If we want to use windows
conventions, then the matter becomes more complicated.
I will discuss this with the other FPC developers first. Anyway, steps a-d
must be prepared first. that'll keep you busy for a while. =-)
Michael.
More information about the Lazarus
mailing list