在另一个 Delphi 应用程序中嵌入 Delphi 窗口
我在 Delphi 2007 应用程序中有一个框架,我想将其嵌入到 Delphi 2010 应用程序的表单中。我可以控制这两个应用程序,因此它们之间的接口可以是两个版本都支持的任何接口。两者之间必须有一些沟通。我能想到的两种方法是使用 CreateParented 和消息,或者使用 ActiveForm。我没有任何创建 ActiveX 控件或进程外服务器的经验,但我听说 Delphi 使它变得非常容易。
无论是在易于使用还是易于开发方面,一种方法是否比另一种更好?还有其他选择吗?有什么我应该注意的问题吗?
I have a frame in a Delphi 2007 application that I want to embed on a form in a Delphi 2010 application. I have control over both applications, so the interface between them can be anything both versions support. There will have to be some communication between the two. The two approaches I can think of are using CreateParented and messages, or using an ActiveForm. I don't have any experience with creating ActiveX controls or out of process servers, but I've heard Delphi makes it pretty easy.
Is one method better than the other, either in terms of easy of use or ease of development? Are there other alternatives? Any gotchas I should watch out for?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想让框架保持 D2007 框架,但将其作为已编译的对象嵌入到 D2010 应用程序中,则 ActiveX 方式似乎是最简单的。
The ActiveX way seems to be simplest if you want to keep your frame a D2007 one but embed it as an already compiled object in a D2010 application.