Active X DLL 的使用问题(Can't create object )

gzlucky 2001-08-30 12:58:44
我用VB写了一个Active X DLL,给另外一个VB写的程序使用,在开发环境下运行正常。
开发环境:
NT4+SP6 VB6+SP4

但打包到另一台NT4+SP6上时,第一次安装也很正常。但当我修改过DLL,并重新在这台新机器上安装后每次EXE执行到调用这个DLL时就会出现Can't create object,并且无论我怎么样安装、注册重新编译等各种方法,都没法让程序顺利执行。但同样的程序在开发环境下却很正常。
对比两套安装程序,用VC的depends来查看DLL及EXE所使用的DLL都是很正常但就是不知道问题所在。

最后我没有办法,只好在运行的机器上安装VB6+SP4后莫名其秒地就好了。但有一个问题还是不好的就是。

当我在机器上把DLL删掉,然后重新编译注册。程序在VB里执行很顺利,但脱离VB就出错(Can't create object)。只有在VB把这个EXE程序重新加载DLL并编著译才可正常运行。

而当我在重新编译DLL时,以覆盖的原有DLL的方法时就不会出现这种情况。

不过这套程序只要安装在没有安装VB的环境都还是不可以正常运行。希望各位帮我解读这个问题谢谢!
...全文
134 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
gzlucky 2001-09-05
  • 打赏
  • 举报
回复
你们的方法好象都不行。

我已经是使用二进制兼容的模式。


regsvr32 /i 返回出错。说没有找到入口。
ltpao 2001-09-01
  • 打赏
  • 举报
回复
如果你修改了该Dll中的类接口,请选择编译选项中二进制兼容模式,否则其它使用该Dll的程序都需要重新编译
gzlucky 2001-08-31
  • 打赏
  • 举报
回复
现在还没测试过,如果能够通过,一定给分。
ozw 2001-08-30
  • 打赏
  • 举报
回复
regsvr32 /i yourdll.dll
Delphi 7.1 Update Release Notes=======================================================This file contains important supplemental and late-breakinginformation that may not appear in the main productdocumentation, and supersedes information contained in otherdocuments, including previously installed release notes.Borland recommends that you read this file in its entirety.NOTE: If you are updating a localized version of Delphi 7, visit the Borland Registered User web site to obtain a localized readme file that may contain important late- breaking information not included in this readme file.IMPORTANT: Delphi must be closed before installing this update. =====================================================CONTENTS * INSTALLING THIS UPDATE * UPDATING LOCALIZED VERSIONS OF DELPHI 7 * KNOWN ISSUES * ISSUES ADDRESSED BY THIS UPDATE - IDE - CORE DATABASE - DATASNAP - DBGO (ADO COMPONENTS) - dbExpress - dbExpress COMPONENTS AND DB VCL - dbExpress CORE DRIVER AND METADATA - dbExpress VENDOR ISSUES - dbExpress CERTIFICATION - WEB SNAP - ACTIVEX - COMPILER - RTL - VCL - THIRD PARTY - BOLD FOR DELPHI * VERIFYING THAT THE UPDATE WAS SUCCESSFUL * FILES INSTALLED BY THIS UPDATE =======================================================INSTALLING THIS UPDATE* This update can not be applied to Delphi 7 Architect Trial version. * This update can not be removed after it is installed.* You will need the original Delphi 7 installation CD available to install this update.* To install this update from the CD, insert the CD, and launch the d7_ent_upd1.exe file appropriate for your locale.* To install this update from the Web, double-click the self-executing installation file and follow the prompts. * The Delphi 7 documentation PDF files are available on the update CD.========================================================UPDATING LOCALIZED VERSIONS OF DELPHI 7* This update can be applied only to the English version of Delphi 7. There are separate updates for the German, French and Japanese ver

7,759

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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