首页 | 本学科首页   官方微博 | 高级检索  
     

在Visual Basic中嵌入Delphi窗体的应用技术
引用本文:周振红,郭恒亮,杨国录.在Visual Basic中嵌入Delphi窗体的应用技术[J].郑州大学学报(工学版),2004,25(1):70-72.
作者姓名:周振红  郭恒亮  杨国录
作者单位:1. 郑州大学环境与水利学院,河南,郑州,450002
2. 武汉大学水利水电学院,湖北,武汉,430072
基金项目:国家自然科学基金,河南省高校青年骨干教师资助项目
摘    要:Delphi窗体嵌入到Visual Basic应用中,可充分利用Delphi的可视化窗体继承技术,并为项目组在语言工具选择上提供灵活性.在Delphi的DLL项目中添加窗体,并在其导出过程中完成窗体的创建、显示和释放;Visual Basic应用通过调用DLL的导出过程即可展示Delphi窗体.实现的关键是在导出过程的参数表中设置句柄参数,以便传递调用程序对象的实例句柄;若显示非模式窗体,导出过程还需返回窗体句柄,以便调用程序对窗体进行维护.

关 键 词:可视化窗体继承
文章编号:1671-6833(2004)01-0070-03
修稿时间:2003年11月18

Delphi Forms Being Applied to Visual Basic
ZHOU Zhen-hong,GUO Heng-liang,YANG Guo-lu.Delphi Forms Being Applied to Visual Basic[J].Journal of Zhengzhou University: Eng Sci,2004,25(1):70-72.
Authors:ZHOU Zhen-hong  GUO Heng-liang  YANG Guo-lu
Affiliation:ZHOU Zhen-hong~1,GUO Heng-liang~1,YANG Guo-lu~2
Abstract:Delphi forms are applied to Visual Basic in order to utilize Visual Form Inheritance of Delphi and to supply a project group with flexibility in choosing development tools. The way is to add forms to a DLL project in Delphi, and to export routines from DLL, which are responsible for creating, showing and releasing forms, then to import routines in Visual Basic. The key is to set up a handle parameter to accept caller's instance handle in exporting routines; and to return a form instance handle used to close the form by caller if the form to show is modeless.
Keywords:Delphi  Visual Basic  DLL
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号