| View previous topic :: View next topic |
| Author |
Message |
Digby Millikan Guest
|
Posted: Wed Dec 20, 2006 8:42 am Post subject: Converting D5 component to BDS 2006 |
|
|
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? |
|
| Back to top |
|
 |
Jonathan Benedicto Guest
|
Posted: Wed Dec 20, 2006 8:55 am Post subject: Re: Converting D5 component to BDS 2006 |
|
|
Digby Millikan wrote:
| Quote: | 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?
|
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 |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Dec 20, 2006 9:11 am Post subject: Re: Converting D5 component to BDS 2006 |
|
|
"Digby Millikan" <digbym (AT) internode (DOT) on.net> wrote in message
news:45889ff9$1 (AT) newsgroups (DOT) borland.com...
| Quote: | 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 |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Dec 20, 2006 9:11 am Post subject: Re: Converting D5 component to BDS 2006 |
|
|
"Digby Millikan" <digbym (AT) internode (DOT) on.net> wrote in message
news:4588d2a3$1 (AT) newsgroups (DOT) borland.com...
| Quote: | 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.
| Quote: | How do I create this file?
|
With Borland's Image Editor utility that ships with every version of the
IDE.
Gambit |
|
| Back to top |
|
 |
Digby Millikan Guest
|
Posted: Wed Dec 20, 2006 9:11 am Post subject: Re: Converting D5 component to BDS 2006 |
|
|
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" <digbym (AT) internode (DOT) on.net> wrote in message
news:4588d2a3$1 (AT) newsgroups (DOT) borland.com...
| Quote: | 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?
|
|
|
| Back to top |
|
 |
Digby Millikan Guest
|
Posted: Wed Dec 20, 2006 9:11 am Post subject: Re: Converting D5 component to BDS 2006 |
|
|
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? |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Dec 20, 2006 3:06 pm Post subject: Re: Converting D5 component to BDS 2006 |
|
|
"Digby Millikan" <digbym (AT) internode (DOT) on.net> wrote in message
news:4588d5d8 (AT) newsgroups (DOT) borland.com...
| Quote: | do I have to add a resource file containing the
design time tool palette icon.
|
That is what a DCR file is for.
| Quote: | It is not appearinf on the tool palette.
|
Did you follow Jonathan's instructions yet?
Gambit |
|
| Back to top |
|
 |
Steve Doughton Guest
|
Posted: Thu Feb 01, 2007 4:01 pm Post subject: Re: Converting D5 component to BDS 2006 |
|
|
Jonathan Benedicto wrote:
| Quote: | 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. |
|
| Back to top |
|
 |
Jonathan Benedicto Guest
|
Posted: Sat Feb 03, 2007 2:36 am Post subject: Re: Converting D5 component to BDS 2006 |
|
|
Steve Doughton wrote:
| Quote: | How do you load more than one personality?
|
-pCBuilder;Delphi on the command-line.
| Quote: | 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.
| Quote: | 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 |
|
| Back to top |
|
 |
|