识别 C++ 的条件指令建设者人物
我有一个 Delphi 组件,我想安装它并在 Delphi 的组件选项板上可用,但在 C++ Builder 中不可用。在 BDS/RAD 2006 及更高版本中,我可以为两个个性安装它,也可以不安装它。
我需要这样做,因为该组件使用不支持 C++ Builder 的第三方库。
我看过 jedi.inc此处提到,但我找不到组合只能在 Delphi 个性中注册组件。该组件还应该适用于较旧的 Delphi 版本:D5、D6 和 D7;但不适用于 BCB5 和 BCB6。这可能吗?
顺便说一句:组件是用 Delphi 编写的。 C++ Builder 与 Delphi 共享相同的包。
提前致谢。
I have a Delphi component which I want to install and have it available at the component palette in Delphi but not in C++ Builder. In BDS/RAD 2006 and above I can either have it installed for both personalities or none.
I need to do so because this component uses 3rd party libraries that doesn't support C++ Builder.
I have looked at jedi.inc mentioned here but I'm not able to find the combination to be able to register the component in Delphi personalities only. The component should also work for older Delphi versions: D5, D6 and D7; but not for BCB5 and BCB6. Is this possible?
BTW: Component is written in Delphi. C++ Builder shares same packages as Delphi.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
BCB 定义仅在 Delphi 编译时支持 C++Builder(使用 -J 开关)时设置。您可以使用这样的代码来检测有人试图使用 C++ 支持构建您的包并发出错误
the BCB define is only set when Delphi is compiling with support for C++Builder (using the -J switches) You can use code like this to detect that someone is trying to build your package with C++ support and issue an error