Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Components in delphi and C++ Builder?

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.

like image 693
Mahdi Avatar asked May 15 '11 15:05

Mahdi


1 Answers

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.

like image 125
David Dean Avatar answered Oct 24 '22 18:10

David Dean