delphi 和 C++ 中的组件建筑商?
我有一些组件(alpha 控件),我可以将它们安装到 Delphi 或 C++ 构建器,它运行良好。但是,当我安装Delphi版本包时,我无法在C++ Builder表单中使用组件,并且当我安装C++ Builder包时,我无法将组件放入Delphi表单中。
我想创建一个新的 C++ 构建器项目并向其中添加一些 Delphi 表单,然后我必须通过 C++ 构建器表单和 Delphi 表单同时使用这些组件。
有些组件在两种环境中都可用,例如 VisionLab 组件。 VisionLab 附带了一个安装程序软件,可以在 C++ 和 Delphi 中安装 VisionLab,但我必须从源代码安装 Alpha Controls。
最后,我使用RAD studio XE Architect。 Alpha控制版本为7.26。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您会发现,如果使用正确的标志进行编译,大多数 Delphi 组件将仅适用于 C++。在 IDE 中,这是通过选择“选项”->“链接器”并选择“生成所有 C++ Builder 文件”来完成的。在命令行上,这是通过在编译包时将 -JL 传递给 dcc32 来完成的。 (dcc32 -JL mypackage.dpk) 然后,您必须将使用此方法生成的 bpl 文件安装到 IDE 中。
也可以仅通过将组件包含在 C++ 项目中来在运行时使用组件,但这并不是理想的用户体验。
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.
好吧,我从未使用过 CBuilder,所以我不能 100% 确定,但是您确定当您安装 Delphi 组件时它们仅适用于 Delphi 吗?同样,如果您安装 CBuilder 组件,它们也不会显示在 Delphi IDE 中。再说一次,我不是 100%,但我认为您需要为 CBuilder 安装 CBuilder 软件包,为 Delphi 安装 Delphi 软件包?
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?