On Wed, 14 Sep 2005 10:12:12 -0400
Tony Maro <[EMAIL PROTECTED]> wrote:
> Cristiano Magro wrote:
>
> >Hi,
> >
> >I see that there is two TXMLConfig, from FPC and from Lazarus, but
> >constructor aren't the same.
> >
> >My problem is that: compliler link with TXMLConfig from FPC and
> >parameters for constructor aren't valid.
> >
> >I use in some package
> >MyConfig := TXMLConfig.Create('setting.xml');
> >
> >but constructor from FPC\FCL\xml\xmlcfg.pp are
> >constructor Create(AOwner: TComponent); override;
> >
> >How I can force use TXMLConfig.Create('setting.xml')?
> >Or How I must rewrite my code?
1. Why do you use both in one unit?
2.1 Do what Tony said:
> To answer the first question, use the unit name in front of the
> component name.
2.2 Or put the laz_xmlcfg behind the xmlcfg in the uses clause.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives