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

Converting D5 component to BDS 2006

16 views
Skip to first unread message

Digby Millikan

unread,
Dec 19, 2006, 9:30:16 PM12/19/06
to
I have a D5 component and set Generate all C++Builder files but the
component only appears on the Delphi Win32 tool palette, but not
on the C++Builder tool palette. Is this something to do with what is held
in the .dcr file, how is this file generated. Can rebuild the component
in BDS2006 using the component .pas file?


Jonathan Benedicto

unread,
Dec 19, 2006, 9:55:25 PM12/19/06
to

Remove the component from the IDE via Component->Install Packages, then
close BDS and delete the .bpl .dcp etc files from the bpl folder, usually My
Documents\Borland Studio Projects. Then open BDS, make sure that the
C++Builder and Delphi personalities are loaded, re-build the pkg, and
install. This should do it.

HTH

Jonathan


Digby Millikan

unread,
Dec 20, 2006, 1:06:25 AM12/20/06
to
Ok, I created a new .bpl file in BDS2006 and added the D5 .pas file to it.
Now all I need is the .dcr file which contains the designtime information.
How
do I create this file?


Remy Lebeau (TeamB)

unread,
Dec 20, 2006, 12:05:55 AM12/20/06
to

"Digby Millikan" <dig...@internode.on.net> wrote in message
news:45889ff9$1...@newsgroups.borland.com...

> I have a D5 component and set Generate all C++Builder files but
> the component only appears on the Delphi Win32 tool palette, but
> not on the C++Builder tool palette.

Did you write a new package for BDS? You can't use the D5 package. Just
like with every other version, packages are version-specific, and must be
compiled with the IDE that you want to install into.

Do you have both personalities loaded at the time of install? You probably
did not actually install the package into the C++ personality at all.
Generating the files alone is not enough.


Gambit


Digby Millikan

unread,
Dec 20, 2006, 1:20:06 AM12/20/06
to
The .pas file contains the lines

procedure Register;
begin
RegisterComponents('Pragena', [TPgCSV]);
end;

but do I have to add a resource file containing the
design time tool palette icon. It is not appearinf on the
tool palette. I am running all personalities of BDS
contiguously.


"Digby Millikan" <dig...@internode.on.net> wrote in message

news:4588d2a3$1...@newsgroups.borland.com...

Remy Lebeau (TeamB)

unread,
Dec 20, 2006, 4:05:02 AM12/20/06
to

"Digby Millikan" <dig...@internode.on.net> wrote in message
news:4588d2a3$1...@newsgroups.borland.com...

> Ok, I created a new .bpl file in BDS2006 and added the D5 .pas file
> to it. Now all I need is the .dcr file which contains the designtime
> information.

A DCR file does not contain any design-time information. It is nothing more
than a resource file that holds images and nothing else.

> How do I create this file?

With Borland's Image Editor utility that ships with every version of the
IDE.


Gambit


Remy Lebeau (TeamB)

unread,
Dec 20, 2006, 4:06:49 AM12/20/06
to

"Digby Millikan" <dig...@internode.on.net> wrote in message
news:4588...@newsgroups.borland.com...

> do I have to add a resource file containing the
> design time tool palette icon.

That is what a DCR file is for.

> It is not appearinf on the tool palette.

Did you follow Jonathan's instructions yet?


Gambit


Steve Doughton

unread,
Feb 1, 2007, 5:01:12 AM2/1/07
to
Jonathan Benedicto wrote:

> Remove the component from the IDE via Component->Install Packages, then
> close BDS and delete the .bpl .dcp etc files from the bpl folder, usually My
> Documents\Borland Studio Projects. Then open BDS, make sure that the
> C++Builder and Delphi personalities are loaded, re-build the pkg, and
> install. This should do it.

How do you load more than one personality?

I am getting in a right mess with this. I am trying to build the ODS (
Orcka ) component suite. I can build the Delphi version in the Delphi
personality and it appears on the toolbar in C++ Builder but I dont have
.bpi files to add to the "requires" list if I use them in other
packages in Builder.

I can not build any design time Builder package that includes .pas files
because any .pas file whose uses section includes DesignIntf or
DesignEditors causes F1026 File not found: 'DesignIntf.dcu'.

The .dcu files are in C:\Borland\CBuilder6\Source\Toolsapi in my BCB6
installation, but C:\Borland\BDS4.0\source\ToolsAPI contains only .pas
files.

Jonathan Benedicto

unread,
Feb 2, 2007, 3:36:50 PM2/2/07
to
Steve Doughton wrote:
> How do you load more than one personality?

-pCBuilder;Delphi on the command-line.


> I am getting in a right mess with this. I am trying to build the ODS (
> Orcka ) component suite. I can build the Delphi version in the Delphi
> personality and it appears on the toolbar in C++ Builder but I dont have
> .bpi files to add to the "requires" list if I use them in other packages
> in Builder.

Check the Borland Studio Projects\Bpl dir for the .bpi files.


> I can not build any design time Builder package that includes .pas files
> because any .pas file whose uses section includes DesignIntf or
> DesignEditors causes F1026 File not found: 'DesignIntf.dcu'.
>
> The .dcu files are in C:\Borland\CBuilder6\Source\Toolsapi in my BCB6
> installation, but C:\Borland\BDS4.0\source\ToolsAPI contains only .pas
> files.

Add designide.bpi to the Requires section of the package.

HTH

Jonathan


0 new messages