7
votes

I have some components ( alpha controls ) I can install them to Delphi or C++ builder it works well. But when I Install Delphi version package I can't use components in C++ Builder forms, And when I install C++ Builder package I can't put components to Delphi form.

I want to create a new C++ builder project and add to it some Delphi forms then I must use the components in same time by C++ builder form and Delphi form.

some of components are available in both environments like VisionLab Components. VisionLab comes with a Installer software that install VisionLab in both C++ and Delphi, But I must Install Alpha Controls from Source code.

Finally, I use RAD studio XE Architect. And Alpha controls version 7.26.

2
I have 2 Package one for Delphi XE and another one for CBuilder XE. I can use Component->Install Package to switch between Delphi and CBuilder bpl files. but when I try to mark both of delphi and CBuilder packages I see an Error message that say some components exists in previously selected package. I want to use this packages in a CBuilder application that contain some delphi forms. then I have to register components in delphi and CBuilder at same time. Or build a package for both CBuilder and Delphi. - Mahdi
I have the source code of this components ( Aplpha Controls ) Is it possible to Create a Package for both of delphi and CBuilder. as I said before There are some components that are usable in both CBuilder and delphi. I want to create package like them but I don't know how to do that? - Mahdi

2 Answers

7
votes

I think you'll find that a majority of Delphi components will simply work for C++ if compiled with the correct flags. In the IDE this is done by selecting Options->Linker and choosing "Generate all C++ Builder Files". On the command line it is done by passing -JL to dcc32 when compiling the package. (dcc32 -JL mypackage.dpk) You then have to install the bpl file generated using this method into the IDE.

It is also possible to use components at runtime only by including them in a C++ project, but this is a less desirable user experience.

0
votes

Well I have never used CBuilder so I am not 100% certain, but are you sure when you install Delphi components they are strictly for Delphi only? And the same if you install CBuilder components they will not show up in the Delphi IDE. Again I am not 100%, but I would of thought you would need to install the CBuilder packages for CBuilder, and the Delphi packages for Delphi?