该类不支持自动化或不支持与VB 6.0的预期接口 [英] Class does not support Automation or does not support expected interface with VB 6.0

查看:125
本文介绍了该类不支持自动化或不支持与VB 6.0的预期接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经开发了一个IE自动化项目,并已部署到了一些不同的客户端中,每个客户端都能正常工作,但是我的一个客户端却面临一个问题.哪个使用创建对象"创建实例给我错误430,类不支持自动化或不支持预期的接口".
< pre lang ="vb">将WithEvents IE视作InternetExplorer

私人子Form_Load()

设置IE = CreateObject("Internetexplorer.application")''''这里出现错误.
IE.Visible = True
IE.Navigate("www.google.com")

结束子

私有子IE_DocumentComplete(ByVal pDisp作为对象,URL作为变体)
MsgBox页面已加载"
结束子

</pre>

1.我在http://www.colba.net/~hlebo49/er430.htm中尝试了所有提到的步骤,但是没有一个对我有用.
2.我还尝试将IE 6迁移到IE 8,但仍然无法正常工作.
3.我检查了给定的参考文献是否正确.
4.我在dll下重新注册,但无法解决我的问题.
< pre> regsvr32 Shdocvw.dll
regsvr32 Shell32.dll
regsvr32 Oleaut32.dll
regsvr32 Actxprxy.dll
regsvr32 Mshtml.dll
regsvr32 Urlmon.dll
regsvr32 msscript.ocx
regsvr32 dispex.dll
regsvr32 vbscript.dll</pre>

有人可以帮助我,我错过了什么吗?
在这里,我惊讶地发现我已经安装了一种软件,该软件可以解决此问题,但在卸载时又会再次出现.

我正在使用Windows XP Prof. Ser.带有IE 6的Pack3.

请帮帮我,谢谢...!

Hi,

I have developed one IE automation project and deployed in some different clients, everywhere its working fine but my one client end I am facing one issue. which creating an instance with Create Object is giving me error no 430, "Class does not support Automation or does not support expected interface".
<pre lang="vb">Dim WithEvents IE As InternetExplorer

Private Sub Form_Load()

Set IE = CreateObject("Internetexplorer.application") '''' Here I am getting an error.
IE.Visible = True
IE.Navigate ("www.google.com")

End Sub

Private Sub IE_DocumentComplete(ByVal pDisp As Object, URL As Variant)
MsgBox "Page Loaded"
End Sub

</pre>

1. I tried all mentioned steps in http://www.colba.net/~hlebo49/er430.htm, but none of them worked for me.
2. I also tried to migrate IE 6 to IE 8, but still its not working.
3. I have checked that given reference are proper.
4. I reregister below dlls but it couldn''t resolve my issue.
<pre>regsvr32 Shdocvw.dll
regsvr32 Shell32.dll
regsvr32 Oleaut32.dll
regsvr32 Actxprxy.dll
regsvr32 Mshtml.dll
regsvr32 Urlmon.dll
regsvr32 msscript.ocx
regsvr32 dispex.dll
regsvr32 vbscript.dll</pre>

Can anybody help me out that I am missing what?
Here one surprise I found that I have been installed one software, which resolved this issue but while uninstalling that it appears again.

I am using Windows XP Prof. Ser. Pack 3 with IE 6.

Please help me out and thanks in advance...!

推荐答案

在客户端上安装Visual Basic Runtime.它可能会解决问题.
参考: http://support.microsoft.com/kb/244493 [ http://support.microsoft.com/kb/290887 [
Install Visual Basic Runtime on the client. It might solve the problem.
Ref: http://support.microsoft.com/kb/244493[^]
Runtime: http://support.microsoft.com/kb/290887[^]


这篇关于该类不支持自动化或不支持与VB 6.0的预期接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆