开发者

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.


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.


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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜