tags:

views:

278

answers:

4

Hi,

I have VB6 ActiveXDLL called A.dll , I am referencing this DLL into my VB.Net Application. Now I am calling a function of A.dll in this project. A.dll function is referring to the function of B.dll ,C.dll ,C.dll further referrer to Z.dll and so on.

when I am executing application it gives an error from B.dll that ActiveX component can,t create an object.

Please help me to solve out this problem waiting for your valuable thoughts

Thanking You

A: 

My first thought would be to make sure all dlls are registered.

Wade73
A: 

Assuming the ActiveX DLL is VB6 and you have access to the VB6 IDE, ensure the class's Instancing property is set to Multiuse.

onedaywhen
A: 

Use OLE View (comes with visual studio) to browse ther TypeLib entry and check it has the correct GUID and that there is onely one registration. Can you create an object instance from the DLL with CreateObject? If not it is not registered correctly.

MaSuGaNa
If there is more than one entry, right click each one and select Copy GUID to CLipboard, then search the registry fro that key and delete the key (and all sub keys) that is has the saem name as the GUID.
MaSuGaNa
A: 
CMH