blast! I thought as much. Let's see how friendly the folk at Rational are...

Phil.




Aaron Scott-Boddendijk <[EMAIL PROTECTED]> on 16/02/2000
14:08:22

Please respond to [EMAIL PROTECTED]

To:   Multiple recipients of list delphi <[EMAIL PROTECTED]>
cc:    (bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)

Subject:  Re: [DUG]:  loading a DCU



> I have been given a DCU file (no source) that I think was compiled with Delphi
> 2. When I try to refer to that unit in the uses clause, I get a compiler error
> that it can't find the .pas file. Is this because it's delphi 2 compiled? or
am
> I missing something basic and obvious here?

DCU files are delphis cheats way of speeding up the compilation process by
providing a very native compiler state structure representing your unit.  This
is
more informative than an OBJ file but has the inconveience of being incompatible
with different versions of the compiler than the one it was created with... This
can
even mean minor releases (EG downloadable updates) rather than just major
releases...  It is for this reason that we only deal with thirdparty tools we
can obtain
source code for... This way we can continue to bug fix a product without moving
to the next version of Delphi even if the vendor has already done so... I'm also
quite keen that vendors make their products as version generic as possible by
abstracting non-visual data from visual data so that DFM formats are not an
issue
and dealing with language changes and changing semantics through compiler
conditionals.

In short - you can't use the DCU anywhere except in D2 (and check which 'D2'
that is
precisely)...

--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz






---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to