Components in Delphi and C ++ Builder?

I have some components (alpha controls), I can install them in Delphi or C ++ builder, it works well. But when I install the Delphi version package, I cannot use components in C ++ Builder forms, and when I install the C ++ Builder package, I cannot put components in the Delphi form.

I want to create a new C ++ builder project and add some Delphi forms to it, then I have to use the components at the same time using the Builder form and the Delphi form.

some components are available in both environments, such as VisionLab Components. VisionLab comes with an installer software that installs VisionLab in both C ++ and Delphi, but I have to install Alpha Controls from the source code.

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

+7
source share
2 answers

I think you will find that most Delphi components will just work in C ++ if they are compiled with the correct flags. In the IDE, this can be done by choosing Options> Linker and choosing Generate all C ++ Builder Files. On the command line, this is done by passing -JL to dcc32 when compiling the package. (dcc32 -JL mypackage.dpk) Then you need to install the bpl file generated with this method into the IDE.

You can also use components at runtime only by including them in a C ++ project, but this is a less desirable user interface.

+7
source

Well, I never used CBuilder, so I'm not 100% sure, but are you sure that when you install Delphi components, they are designed exclusively for Delphi? And the same, if you install CBuilder components, they will not be displayed in the Delphi environment. Again, I'm not 100%, but I thought you would need to install CBuilder packages for CBuilder and Delphi packages for Delphi?

0
source

All Articles