urgent

S

scorpion53061

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\{00020404-0000-0000-C000-0000
00000046}]
@="IEnumVARIANT"

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

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{00020404-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.
 
T

tulasi

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*80040154):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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top