Board index » delphi » Installing new components

Installing new components

I got a Delphi component, called TSizer, off of the Internet.  Its
supposed to resize forms and components at run time depending on what
resolution is being used.  Anyway, I've followed the installation
instructions to the letter and I keep getting an error message when
it tries to compile and link all components.  It says that it can't find
a file needed (I think its TSizer.pas).  The compiled unit is given
(TSizer.dcu), but TSizer.pas is not supplied in the zip file.  Should it
be?  Is the source file always needed to install a new component, or is
there a way around it?  I'm using Delphi 2.0.

 

Re:Installing new components


Quote
Tom Diamond wrote:

> I got a Delphi component, called TSizer, off of the Internet.  Its
> supposed to resize forms and components at run time depending on what
> resolution is being used.  Anyway, I've followed the installation
> instructions to the letter and I keep getting an error message when
> it tries to compile and link all components.  It says that it can't find
> a file needed (I think its TSizer.pas).  The compiled unit is given
> (TSizer.dcu), but TSizer.pas is not supplied in the zip file.  Should it
> be?  Is the source file always needed to install a new component, or is
> there a way around it?  I'm using Delphi 2.0.

You do need the pas file. It is not the source that is required, but the
definitions, "interface" section. That is everything prior to the
"implementation" part. The dcu is the compiled version of the source.
However, there should be some sort of a header containing the interface.

Re:Installing new components


On 26 Sep 1997 18:21:10 GMT, t...@wwa.com (Tom Diamond) wrote:

Quote
>I got a Delphi component, called TSizer, off of the Internet.  Its
>supposed to resize forms and components at run time depending on what
>resolution is being used.  Anyway, I've followed the installation
>instructions to the letter and I keep getting an error message when
>it tries to compile and link all components.  It says that it can't find
>a file needed (I think its TSizer.pas).  The compiled unit is given
>(TSizer.dcu), but TSizer.pas is not supplied in the zip file.  Should it
>be?  Is the source file always needed to install a new component, or is
>there a way around it?  I'm using Delphi 2.0.

Pre-compiled .DCUs are specific to the Delphi version they were
compiled under; if you're getting that error then you probably have
the wrong version of the .DCU for Delphi 2.0.  

You either need to get the source code (probably available if you buy
the component and which MAY also vary according to version), or you
need the correct version of the .DCU.

HTH

Stephen Posey
slpo...@concentric.net

Other Threads