문제

I have one COM component - "ProgramA.dll" This COM component is internally referencing "ProgramB.dll", and creating an instance of underlying object as follow:

Public Sub AddData()
Dim..... 
.......
    Set objClassA = New ProgramB.clsClassA
.....
End Sub

I have added a reference of ProgramA.dll in my .NET application (and also added a reference of ProgramB in .NET app).

When I call "AddData()" method of ProgramA through my .NET application, then its failing while trying to create instance of ProgramB.clsClassA, it is giving an error saying "AcitveX component can't create object"

What could be the possible reason, or what changes I require to do?

도움이 되었습니까?

해결책

I registered ProgramB.dll using regsvr32 and it worked.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top