使用VBScript调用CreateObject错误,err值为429,请问是什么意思 ?

TestBug 2002-09-23 12:06:16
使用VBScript调用CreateObject错误,err值为429,请问是什么意思?


我前没有用过 VBScript, 今天需要使用, 写了如下的代码:
<script language="VBScript">
Sub OnFunc1()
On Error Resume Next
set kkk =CreateObject("XXXObject.API")
if err<>0 then
alert("error")
alert(err)
else
call kkk.aaa()
end if

end sub

call OnFunc1()

</script>

在windows 2000, xp下的ie6中没有问题, 但在某台 win98第二版+IE5.0的机器上产生错误, err 的值为 429. (其他机器的win98+ie5没有这个错误). 请问这是什么意思? 另外, 哪里可以查到这些错误代码的含义?

非常感谢各位!
...全文
153 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
yonghengdizhen 2002-09-24
  • 打赏
  • 举报
回复
ole查看程序,查看一下组件的依赖关系..
yonghengdizhen 2002-09-24
  • 打赏
  • 举报
回复
那就是依存控件或组件在目标系统中不存在..
TestBug 2002-09-24
  • 打赏
  • 举报
回复
问题已经解决. 我将编译方式由 minisize 改为 minidepend就好了. 谢谢各位.
TestBug 2002-09-23
  • 打赏
  • 举报
回复
谢谢! 我刚才加入了一条

alert Err.Description

语句, 亦是报告 active 对象不能创建. 可是我的路径以及所有的对象注册都是好的. 在其他的机器上运行没有问题. 不知有谁碰到过这种现象?
方工 2002-09-23
  • 打赏
  • 举报
回复
ActiveX component can't create object
See Also
Using VBScript with Objects
The VBScript 5.5 runtime could not instantiate the object for you because the object's class is not registered in the system registry, or one or more of the associated dynamic-link libraries (DLLs) are not available. Alternately, a DLL required by the object may be unusable, either because it can't be found, or it is corrupted.

To correct this error

Make sure all associated DLLs are available. For example, the Data Access Object (DAO) requires supporting DLLs that vary among platforms. You may have to rerun the setup program for such an object.
Internet Explorer may be trying to create an object for you, but you do not have the correct security permissions set in Internet Explorer. Reset the Internet Explorer security setting and try again.
TestBug 2002-09-23
  • 打赏
  • 举报
回复
我自己写的一个 object
TestBug 2002-09-23
  • 打赏
  • 举报
回复
to yonghengdizhen(情已逝-只有梦还在) :

我设了, 但没用.
方工 2002-09-23
  • 打赏
  • 举报
回复
what object did you want to create?
yonghengdizhen 2002-09-23
  • 打赏
  • 举报
回复
安全设置不允许运行未签名的active x控件
TestBug 2002-09-23
  • 打赏
  • 举报
回复
根据 MSDN 提示: Internet Explorer may be trying to create an object for you, but you do not have the correct security permissions set in Internet Explorer. Reset the Internet Explorer security setting and try again.

我重设了安全属性,仍不可用.
TestBug 2002-09-23
  • 打赏
  • 举报
回复
我在 MSDN 中查到了这章:VBScript Run-time Errors有错误代码的介绍. 但仍无法确定我的错误出在什么地方.

87,996

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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