Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Delphi 3: How to add components as .dcu files to Packages ???

1,014 views
Skip to first unread message

Erwin de Groot

unread,
Jun 7, 1997, 3:00:00 AM6/7/97
to

Does anyone know how I can add 3rd-party d1 and d2 components, only
known as .dcu files, to the new package-structure in delphi 3?
I can add them... But for compiling the package you have to have the
source (as it seems)

Please,... if you do know the answer... respond!

Greatings from Erwin de Groot.


Wolfram Schubert

unread,
Jun 8, 1997, 3:00:00 AM6/8/97
to

> I can add them... But for compiling the package you have to have the
> source (as it seems)
That愀 the answer. You have to have the source as they are different in
each of Delphi愀 versions. (e. g. D1 - 16bit, D2/D3 32 bit)

Wolfam
w...@gsn.de

Jack Bakker

unread,
Jun 9, 1997, 3:00:00 AM6/9/97
to

D1 dcu files cannot be added because they are 16-bit compiled code. D2 dcu
files seem to have a slightly different format than D3 dcu files so they
don't compile either. You need original D3 dcu files or the source.

Jack
Erwin de Groot wrote in article <33999602...@worldonline.nl>...


>Does anyone know how I can add 3rd-party d1 and d2 components, only
>known as .dcu files, to the new package-structure in delphi 3?

>I can add them... But for compiling the package you have to have the
>source (as it seems)
>

Jan Oomen

unread,
Jun 9, 1997, 3:00:00 AM6/9/97
to Erwin de Groot

Erwin de Groot wrote:
>
> Does anyone know how I can add 3rd-party d1 and d2 components, only
> known as .dcu files, to the new package-structure in delphi 3?
> I can add them... But for compiling the package you have to have the
> source (as it seems)
> Please,... if you do know the answer... respond!

I don't know about D3 but in D2 you have to make sure you select the
*.DCU file while adding a component to the component palette. In D2 you
have a choice of selecting either *.PAS or *.DCU.

If you add the (compiled) *.DCU file the DCU will only be linked and not
compiled if the *.PAS is not found.

Philippe Martinole

unread,
Jun 9, 1997, 3:00:00 AM6/9/97
to

> > Does anyone know how I can add 3rd-party d1 and d2 components, only
> > known as .dcu files, to the new package-structure in delphi 3?
> > I can add them... But for compiling the package you have to have the
> > source (as it seems)
> > Please,... if you do know the answer... respond!

I have the same problem and I can't use my Delphi 2 components
with Delphi 3. That's why I am still programing with Delphi 2.
Delphi 3 allways asks for the .PAS.
May be, you must install packages with Delphi 3 (.DPL) ?

--
Page Web d'AIM : http://www.micronet.fr/~phmarty/
Perso : phm...@micronet.fr
Bureau : pc : philippe....@der.edfgdf.fr
unix : mart...@clr40ae.der.edf.fr

Ben Ziegler

unread,
Jun 9, 1997, 3:00:00 AM6/9/97
to

No offense, but I think you are wrong (about Delphi 3.0 only
allowing .PAS files to be installed).

In Delphi 3.0, select the "Component" menu, "Install Component",
hit the "Browse" button, and change the "File of Type" to .DCU.
Of course this will only install Delphi 3 DCU's and not Delphi
2 DCU's.

-Ben Ziegler
bzie...@radix.net

Check out the new Web Application Builder for Delphi (WABD) v1.1 at:
http://www.radix.net/~bziegler/wabd/wabd.htm
NEW features: Delphi 3 support, DataTable component, LIVE images,
and more!

Philippe Martinole (mart...@clr40ae.der.edf.fr) wrote:
: > > Does anyone know how I can add 3rd-party d1 and d2 components, only

Philippe Martinole

unread,
Jun 10, 1997, 3:00:00 AM6/10/97
to

> In Delphi 3.0, select the "Component" menu, "Install Component",
> hit the "Browse" button, and change the "File of Type" to .DCU.
> Of course this will only install Delphi 3 DCU's and not Delphi
> 2 DCU's.

With some component in the Delphi 3 page of DSP I have the same
problem. May be it is not Delphi 3 component in fact.
Borland could allow Delphi 3 to use Delphi 2 components !!!

Philippe

Ed Hochman

unread,
Jun 10, 1997, 3:00:00 AM6/10/97
to

In article <339CFF...@clr40ae.der.edf.fr>, Philippe Martinole <mart...@clr40ae.der.edf.fr> wrote:
>With some component in the Delphi 3 page of DSP I have the same
>problem. May be it is not Delphi 3 component in fact.

I noticed this too. The Globe component is listed for D3 on the DSP; but it
is pretty obviously a D2 DCU.

Ed

-----
Ed Hochman - MBH Systems - e...@mbhsys.com

Sanne Hoekstra

unread,
Jun 16, 1997, 3:00:00 AM6/16/97
to

Hi all,

This comment has been here before,

It isn't strange Delphi 2 components (in DCU form) can't be used as Delphi
3 component's becouse they are used completely different in the VCL.

You can't use Delphi 1 DCU in Delphi 2.

This is a normal procedure if you want the VCL to be improved majorly.

Happy coding.
--
+++

Use this address to Mail, no Spam_Mail.
Sanne Hoekstra
San...@dds.dds.nl

Mike Caldwell <cal...@minna.cns.iit.edu> schreef in artikel
<339e57c8...@news.anet-chi.com>...


> On Tue, 10 Jun 1997 09:19:11 +0200, Philippe Martinole
> <mart...@clr40ae.der.edf.fr> wrote:
>
> >> In Delphi 3.0, select the "Component" menu, "Install Component",
> >> hit the "Browse" button, and change the "File of Type" to .DCU.
> >> Of course this will only install Delphi 3 DCU's and not Delphi
> >> 2 DCU's.
> >

> >With some component in the Delphi 3 page of DSP I have the same
> >problem. May be it is not Delphi 3 component in fact.

> >Borland could allow Delphi 3 to use Delphi 2 components !!!
> >
> >Philippe
> >

> Yeah, that tops my list as the stupidest thing Borland's ever done
> (not allowing D2 components to be compatible with D3).
>
> When trying to install a D2 DCU into D3, Delphi will recognize that
> it's in the old format and start to search for the PAS equivalent to
> recompile it into the new format. If all you have is a D2 DCU, you're
> outta luck until you can get the source code or an update.
>
> Mike Caldwell
>

Mike Miller

unread,
Jun 16, 1997, 3:00:00 AM6/16/97
to

Erwin de Groot wrote:
>
> Does anyone know how I can add 3rd-party d1 and d2 components, only
> known as .dcu files, to the new package-structure in delphi 3?
> I can add them... But for compiling the package you have to have the
> source (as it seems)
>
> Please,... if you do know the answer... respond!
>
> Greatings from Erwin de Groot.

I've spent about three hours reading all the help and playing with
everything, and I've come to the same conclusion! Surely they wouldn't
do this! It would put an end to all the freeware and shareware component
development!

I hope we're wrong. Does anyone else know the answer?

Mike Miller

Jeffrey Schrab

unread,
Jun 16, 1997, 3:00:00 AM6/16/97
to Mike Miller

This is a multi-part message in MIME format.
--------------FD8CD09CF681BE460BE4068D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Nope. He is mostly right. Packages are a superset of DCU's - DCU's
still exist. But the internal structure HAS changed from D2 to D3; you
DO need the source to move from version to version.

And any software who's author will not provide either source or
recompiled DCU's on request is not worth using.

--

Jeffrey Schrab | (work) jsc...@qdyn.com
| (home) j_sc...@execpc.com
Quantum Dynamics International, Inc.
(414)731-0722
--------------FD8CD09CF681BE460BE4068D
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jeffrey Schrab
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Jeffrey Schrab
n: Schrab;Jeffrey
org: Quantum Dynamics International, Inc.
adr: 2224 N. Gillett St.;;;Appleton;WI;54914;USA
email;internet: jsc...@qdyn.com
tel;work: (414)731-2806
tel;fax: (414)731-0722
tel;home: (414)236-9235
x-mozilla-cpt: ;0
x-mozilla-html: TRUE
end: vcard


--------------FD8CD09CF681BE460BE4068D--


Paul Francis Gilbert

unread,
Jun 17, 1997, 3:00:00 AM6/17/97
to

Mike Miller <mik...@bellsouth.net> writes:

>Erwin de Groot wrote:
>>
>> Does anyone know how I can add 3rd-party d1 and d2 components, only
>> known as .dcu files, to the new package-structure in delphi 3?
>> I can add them... But for compiling the package you have to have the
>> source (as it seems)
>>
>> Please,... if you do know the answer... respond!
>>
>> Greatings from Erwin de Groot.

>I've spent about three hours reading all the help and playing with
>everything, and I've come to the same conclusion! Surely they wouldn't
>do this! It would put an end to all the freeware and shareware component
>development!

>I hope we're wrong. Does anyone else know the answer?

>Mike Miller

This must be about the most frequently asked question/complaint there is.
It's not possible. Borland made a lot of changes/updations to the VCL between
2 and 3. DCU components compiled for the VCL verison 2 simply will not work
will VCL version 3. In Borland Pascal's long history, there has never been
a single version that had unit compatibility with a previous version. To do
so would force them to not update the underlying libraries.

Personally, to your other complaint, I think that any author that wouldn't
either release the source code, or recompile a new version for Delphi 3
isn't worthy of using in any case.

--
Paul Gilbert | p...@yallara.cs.rmit.edu.au
Bach App Sci, Bach Eng | The opinions expressed are my own, all my own, and
Year 4, RMIT Melbourne | as such will contain no references to small furry
Australia | creatures from Alpha Centauri.

Bryan Valencia

unread,
Jun 18, 1997, 3:00:00 AM6/18/97
to

This is a multi-part message in MIME format.
--------------DBEC9778D6465D732D9C5DF8

Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Philippe Martinole wrote:
>
> With some component in the Delphi 3 page of DSP I have the same
> problem. May be it is not Delphi 3 component in fact.
> Borland could allow Delphi 3 to use Delphi 2 components !!!
>
> Philippe
>

Yeah, They could do that if Delphi 3 had a VCL that was EXACTLY the same
as the Delphi 2 VCL. But then why would anyone upgrade????
--------------DBEC9778D6465D732D9C5DF8


Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit

Content-Description: Card for Bryan Valencia
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Bryan Valencia
n: Valencia;Bryan
org: Software Services
email;internet: bry...@thevision.net
title: Owner
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
end: vcard


--------------DBEC9778D6465D732D9C5DF8--

Chuck Adams

unread,
Jun 26, 1997, 3:00:00 AM6/26/97
to

>>
>Yeah, that tops my list as the stupidest thing Borland's ever done
>(not allowing D2 components to be compatible with D3).
>
>When trying to install a D2 DCU into D3, Delphi will recognize that
>it's in the old format and start to search for the PAS equivalent to
>recompile it into the new format. If all you have is a D2 DCU, you're
>outta luck until you can get the source code or an update.

what really torques me is that there's no warning or error about incompatible
dcu format, it just ignores the dcu completely.

i was not pleased at all at this lack of compatibility. if anything like this
happens to me again i'm through with borland

Paul Francis Gilbert

unread,
Jun 27, 1997, 3:00:00 AM6/27/97
to

chuck@but_i_dont_like_spam.org (Chuck Adams) writes:

>>>
>>Yeah, that tops my list as the stupidest thing Borland's ever done
>>(not allowing D2 components to be compatible with D3).
>>
>>When trying to install a D2 DCU into D3, Delphi will recognize that
>>it's in the old format and start to search for the PAS equivalent to
>>recompile it into the new format. If all you have is a D2 DCU, you're
>>outta luck until you can get the source code or an update.

>what really torques me is that there's no warning or error about incompatible
>dcu format, it just ignores the dcu completely.

Despite the fact that Borland have NEVER had a compatible DCU format from one
version to the next, you now get people coming out of the woodwork whining
about it now?

>i was not pleased at all at this lack of compatibility. if anything like this
>happens to me again i'm through with borland

What people like this fail to recognise is that Borland changed their VCL
from 2 to 3. It was necessary to support all those cool new COM features and
stuff. And since DCUs are a precompiled file, files compiled to rely on the
old VCL are of course not going to work with the new VCL, even if the DCU
file format WAS the same.

Geeze, if it pisses you off so much, stay with Delphi 2. Certainly no-ones
forcing to you use Delphi 3.

Mike Caldwell

unread,
Nov 13, 1997, 3:00:00 AM11/13/97
to

On 9 Jun 1997 16:24:20 GMT, bzie...@Radix.Net (Ben Ziegler) wrote:

>No offense, but I think you are wrong (about Delphi 3.0 only
>allowing .PAS files to be installed).
>

>In Delphi 3.0, select the "Component" menu, "Install Component",
>hit the "Browse" button, and change the "File of Type" to .DCU.
>Of course this will only install Delphi 3 DCU's and not Delphi
>2 DCU's.
>

>-Ben Ziegler
>bzie...@radix.net

That's the rub - If you try to install a Delphi 3.0 compiled DCU, no
problem. BUT, if you try it with a Delphi 2.0-compiled DCU, and try
to compile the package, D3 will realize that the DCU is in the "wrong"
format and search for the PAS file to recompile it into the new D3
format. So the bottom line is that any DCU you try to install into D3
NEEDS to be compiled in the D3 format.

This now tops my list as the all-time stupidest thing Borland's ever
done (or not done).


>
>Check out the new Web Application Builder for Delphi (WABD) v1.1 at:
>http://www.radix.net/~bziegler/wabd/wabd.htm
>NEW features: Delphi 3 support, DataTable component, LIVE images,
>and more!
>

>Philippe Martinole (mart...@clr40ae.der.edf.fr) wrote:
>: > > Does anyone know how I can add 3rd-party d1 and d2 components, only
>: > > known as .dcu files, to the new package-structure in delphi 3?
>: > > I can add them... But for compiling the package you have to have the
>: > > source (as it seems)
>: > > Please,... if you do know the answer... respond!
>

>: I have the same problem and I can't use my Delphi 2 components
>: with Delphi 3. That's why I am still programing with Delphi 2.
>: Delphi 3 allways asks for the .PAS.
>: May be, you must install packages with Delphi 3 (.DPL) ?
>

>: --

0 new messages