PowerBuilder 12 与 Visual Studio - 设计器支持
我有为 VS2008 和 VS2010 设计的控件。它也适用于 Power Builder 12 设计器吗?或者我需要创建任何 design.dll
I have control designed for VS2008 and VS2010. Will it work in Power Builder 12 designer as well? or Would I need to create any design.dll
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这取决于控件,但一般来说 PowerBuilder 12(及之前的版本)可以通过 OLE 使用外部控件,没有任何问题。您可以通过 Insert --> 将它们添加到您的应用程序中控制--> OLE 菜单项,然后系统会提示您提供一个已注册对象的列表以供选择。
编码时,您需要使用“对象引用”或点符号来引用属性和/或方法。在 PB 中一切都工作正常,但它对用户不太友好,您不能执行命名参数,并且需要正确地使用语法(并捕获异常)以避免空对象引用崩溃。
希望我正确理解你的问题,这会有所帮助。
问候,
富有的
It depends on the control but in general PowerBuilder 12 (and prior versions) can use external controls via OLE without any problem. You add them to your application via Insert --> Control --> OLE menu item, then you'll be prompted with a list of registered object to select from.
When coding you'll need to use the "object reference" or dot notation to reference properties and/or methods. Everything works fine in PB but it's not as user friendly you can't do named arguments and need to get your syntax just (and catch exceptions) right to avoid null object reference crashes.
Hope that I understood your question correctly and this helps.
Regards,
Rich
您的目标是哪个版本的 PowerBuilder?如果它是一个 .Net 控件并且您的目标是 PB.Net,那么它基于 Visual Studio shell,并且可以与您为 Visual Studio 所做的工作正常工作。
what version of PowerBuilder are you targetting? If its a .Net control and you are targetting PB.Net, its based on the visual studio shell and will work fine with what you've done for Visual Studio.