Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-10

streaming functions in LResources

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Roland Schaefer

Hi,
I am trying to figure out property streaming a little more in-depth and have a question. I have just started fiddling with it, so please bear with me if I just missed something trivial.

When I use functions from LResources like
WriteComponentAsBinaryToStream(MyStream,MyComponent) or CreateLFMFile(MyFileStream,MyComponent), then I get something like (using an LFM example):

object TMyComp
Prop1 = 42
end

but what I need is this:

object MyComponent : TMyComp
Prop1 = 42
end

Any suggestions where I should go from here? Btw, I am just using fpc 2.2.4 (not Lazarus) and have imported LResorces and its dependencies directly into my source tree for the time being.

Cheers, thanks a lot
Roland

Roland Schaefer
to Roland Schaefer

Ok, it *was* trivial, and I found it myself. Forgot to set the "Name" property.

Sry
Roland

Roland Schaefer wrote 30 lines
Hi, I am trying to figure out property streaming a little more in-depth and have a question. I have just started fiddling with it, so please bear with me if I just missed something trivial. When I use functions from LResources like WriteComponentAsBinaryToStream(MyStream,MyComponent) or CreateLFMFile(MyFileStream,MyComponent), then I get something like (using an LFM example): object TMyComp Prop1 = 42 end but what I need is this: object MyComponent : TMyComp Prop1 = 42 end Any suggestions where I should go from here? Btw, I am just using fpc 2.2.4 (not Lazarus) and have imported LResorces and its dependencies directly into my source tree for the time being. Cheers, thanks a lot Roland _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal