在Delphi4里怎么调用VB'ActiveX DLL?

gardenia 2000-04-07 03:09:00
我用VB5编了一个DLL(ActiveX DLL),在Delphi5里可以顺利地Import并调用,
但是在Delphi4怎么试都不能导入,(Delphi4的“Project\Import Type Library...”
功能和Delphi5的不大一样)。
请问在Delphi4里怎么才能调用这个DLL呢?
谢谢。
...全文
113 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
freeas 2000-04-11
  • 打赏
  • 举报
回复
但实际上却在工具栏上占了一个位置。
gardenia 2000-04-07
  • 打赏
  • 举报
回复
one is "Project\Import Type Library...":前期绑定
——但是前期绑定根本就不成功啊,在Delphi4里,在Import Type Library对话框里
把我的DLL加进去后并不能象在Delphi5里一样在工具栏上找到我加进去的ActiveX Dll,
请问,具体应该怎么前期绑定?
后期绑定我稍后再试。
谢谢你的回复。
playyuer 2000-04-07
  • 打赏
  • 举报
回复
two methods
one is "Project\Import Type Library...":
前期绑定,成员列表在设计阶段整合在IDE中
the other is latest binding(后期(Run time)绑定):
欢迎到 http://simideal.top263.net
下载 Delphi(PB) 调用 VB 编 ActiveX Dll(DataReporPlus) 例程
参考代码:
uses
....comobj;
...
var
X: OleVariant;
...
procedure XXX();
begin
x:=CreateOleObject('datareportplus.bardatareport');
end;
...
=================================================== AddFlow ActiveX control Version 4.2.0.26Copyright (c) 1997-2004 Lassalle Technologies. All rights reserved.http://www.lassalle.com===================================================Last updated: august 14, 2004Note: the purpose of this readme file is just to give the description of this package. See the file history.txtto know the last improvements.PACKAGE DESCRIPTIONThis package is a full installation package of the AddFlow ActiveX control, version 4.2. The installation program has been created with InstallShield for Microsoft Visual C++ 6.It installs: - ADDFLOW4.OCX: It is placed in the Windows system directory. - ADDFLOW4.CHM: the AddFlow help file - PRNFLOW3.OCX: the PrnFlow ActiveX control, version 3.0.0.2 It is an extension of AddFlow, allowing to print diagrams. It is placed in the Windows system directory. - PRNFLOW3.HLP: the PrnFlow help file - 3 Microsoft shared DLLs: MFC42.DLL, MSVCRT.DLL, OLEPRO32.DLL There are placed in the Windows system directory. - README.TXT (this current text file) - HISTORY.TXT (a description of each new version enhancements) - 6 VB6 SAMPLES * VBAF4EDIT It is a small diagram editor illustrating how to use the Undo/Redo feature and how to easily change the node and link properties by right clicking on them. * NAVIG It demonstrates how to use collections to navigate in a diagram. * POINT It allows working with the collection of the link points and with the following properties: ExtraPoints, AdjustOrg, AdjustDst, LinkStyle and OrthogonalDynamic. * PICTURES It shows how to use the Pictures and PictureIndex properties. * TABLES This VB6 sample demonstrates how to use AddFlow to create database diagrams. * XMLFLOW An ActiveX DLL allowing to save/load an AddFlow diagram in a XML file. - 2 VC6 SAMPLES * NAVIG VC6 sample: the same program as the NAVIG VB6 sample except that it is written in C++. * VCAF4EDIT VC6 sample: a MDI diagram editor written in C++. It displays 4 examples of diagrams created programmaticaly. - 3 DELPHI 5 SAMPLES * Editor: a small diagram editor * Navig: same as the VB6 and VC6 versions. * Demo: displays 4 examples of diagrams created programmaticaly. ------------------------------------------------------------------------------TRADEMARKS:* AddFlow and PrnFlow are registered trademarks of Lassalle Technologies.* InstallShield is a registered trademark of InstallShield Corporation.All other names and trademarks are property of their respective companies.------------------------------------------------------------------------------

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧