C++ Builder 2006 and Delphi components

C++ Builder 2006 and Delphi components

Post by Brian Rasm » Tue, 03 Jan 2006 06:45:57


Hello,

It was my understanding that Delphi components could be used more or less
directly from C++ in BDS 2006, but that does not seem to be the case.

I have installed EmbeddedWB
( http://www.yqcomputer.com/ ) using the Delphi
personality, and that works fine. The components are visible when I create a
Delphi project. However, when I create a C++ project, the components are not
visible in the component list. Why is that? Are seperate component
installations necessary for Delphi and C++ Builder in BDS 2006?

Regards,
Brian
 
 
 

C++ Builder 2006 and Delphi components

Post by Team » Tue, 03 Jan 2006 08:26:16


You have to compile the Delphi package with the C++ options turned on. This
will generate the bpi and lib files necessary to work with them in C++.

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
A human being should be able to change a diaper, plan an invasion, butcher
a hog, conn a ship, design a building, write a sonnet, balance accounts, build
a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act
alone, solve equations, analyze a new problem, pitch manure, program a computer,
cook a tasty meal, fight efficiently, die gallantly. Specialization is for
insects. (RAH)

 
 
 

C++ Builder 2006 and Delphi components

Post by Roddy Prat » Tue, 03 Jan 2006 08:44:27

> It was my understanding that Delphi components could be used more or less

Yes.


It's because the package hasn't been built in BDS2006 with C++ support
enabled. Apart from no components on the palette, you'll have no .hpp or
.lib files. You will see the package listed as 'installed', the 'components'
button in the package options will list the components, but they don't show
on your tool pallette.

To fix this, open the component package project in BDS2006, and check the
'linker' section in project options. There's an option to "generate all C++
Builder files". Enable this, rebuild and reinstall the package.
Unsurprisingly, the online help has no information on this option.

I've had problems where this doesn't seem to immediately work: If so, I'd
recommend you remove the old package, and exit the IDE. Restart the IDE,
then rebuild and install the package. Now switch to a C++ project, and your
components should be there.

- Roddy
 
 
 

C++ Builder 2006 and Delphi components

Post by Brian Rasm » Wed, 04 Jan 2006 05:10:59

> To fix this, open the component package project in BDS2006, and check the

Thanks Roddy, that solved it!

Best regards,

Brian Rasmusson
Bitberry Software

Do you know if your web site has been hacked?
Do you keep an eye on your competitors?
No? You should. Your automated solution is here:
http://www.yqcomputer.com/