紧急 [英] urgent

查看:94
本文介绍了紧急的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试


Dim wia As New WiaClass


Dim div As DeviceInfoClass


wia 。创建(div)


''wia.Devices()


Dim wtype As WiaDeviceInfoPropertyId


MsgBox(wtype.DeviceInfoDevName)


Catch ex As Exception


MsgBox(ex.ToString)


结束尝试


我执行上面的代码,下面的错误是在VB.Net中获得的


" System.Runtime .InteropServices.COMException(0 * 800 40154):Class not

注册"


我使用的是wiascr.dll这是图像采集COM组件


在这个组件中我也在命令提示符下注册REGSVR32


如何纠正上面的错误。任何人都知道请帮助我

推荐答案

首先,显而易见的是确保您的包装和dll已经注册

并正确导入。

我听说过去发生过这种情况,通常是因为某些注册接口的注册表损坏

(通常不是由Visual Studio安装引起的) ,但其他一些

申请表)。似乎至少有一个在
实例中显示IEnumVARIANT接口的条目已被损坏。您应该检查您的注册表

并查看它是否与以下内容匹配:

Windows注册表编辑器版本5.00


[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\ {000 20404-0000-0000-C000-0000

00000046}]

@ =" IEnumVARIANT"


[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\ {000 20404-0000-0000-C000-0000

00000046} \ NumMethods] < br $>
@ =" 7"


[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\ {000 20404-0000-0000-C000-0000

00000046} \ProxyStubClsid]

@ =" {00020421-0000-0000-C000-000000000046}"


[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\ {000 20404-0000-0000-C000-0000

00000046} \ ProxyStubClsid32]

@ =" {00020421-0000-0000-C000-000000000046}"


如果没有,那可能是哟的来源你的问题。将上述

导出到.reg文件并运行它。


当然,在这样的东西中没有保证。


" tulasi" <涂************** @ yahoo.com>在消息中写道

新闻:#H ************* @ TK2MSFTNGP11.phx.gbl:
First the obvious lets make sure your wrappers and dlls are registered
and properly imported.

I have heard of this occurring in the past, usually because of a
registry corruption of some registered interfaces
(generally not caused by the Visual Studio install, but some other
application). It appears that at least one in
instance showed that the entries for the IEnumVARIANT interface were
corrrupted. You should check your registry
and see if it matches the following:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{000 20404-0000-0000-C000-0000
00000046}]
@="IEnumVARIANT"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{000 20404-0000-0000-C000-0000
00000046}\NumMethods]
@="7"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{000 20404-0000-0000-C000-0000
00000046}\ProxyStubClsid]
@="{00020421-0000-0000-C000-000000000046}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{000 20404-0000-0000-C000-0000
00000046}\ProxyStubClsid32]
@="{00020421-0000-0000-C000-000000000046}"

If not, that is probably the source of your problem. Export the above
to a .reg file and run it.

Of course, in stuff like this there are not guarantees.

"tulasi" <tu**************@yahoo.com> wrote in message
news:#H*************@TK2MSFTNGP11.phx.gbl:
尝试


Dim div As DeviceInfoClass

wia.Create(div)

''wia.Devices()

Dim wtype As WiaDeviceInfoPropertyId

MsgBox(wtype.DeviceInfoDevName)

Catch ex As Exception

MsgBox(ex.ToString)

结束尝试

我正在执行上面的代码,下面的错误是在VB.Net中获得的

System.Runtime.InteropServices.COMException (0 * 800 40154):Class not
注册"

我正在使用wiascr.dll这是图像采集COM组件

在这个组件中我也是在命令提示符下注册REGSVR32

如何纠正上面的错误。任何人都知道请帮帮我
Try

Dim wia As New WiaClass

Dim div As DeviceInfoClass

wia.Create(div)

''wia.Devices()

Dim wtype As WiaDeviceInfoPropertyId

MsgBox(wtype.DeviceInfoDevName)

Catch ex As Exception

MsgBox(ex.ToString)

End Try

I am executing the above code the below Error is obtained in VB.Net

"System.Runtime.InteropServices.COMException(0*800 40154):Class not
registered "

I am using wiascr.dll This is image aquisition COM component

In this component i am also register with REGSVR32 in command prompt

How to rectifie the above Error.Any one knows please help me






这篇关于紧急的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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