List Info

Thread: VB.net dll not working in VB6 ActiveX




VB.net dll not working in VB6 ActiveX
country flaguser name
United States
2007-10-04 22:47:31

This has been driving me crazy for a long time, Can you please tell me what I could be doing wrong?

I am trying to create a VB.net Class Lib that is being referenced by a VB6 ActiveX DLL project. However, no matter what I try, I cannot access any of the public methods within the VB.net assembly.

I've checked the box named "Expose Com" in the assembly properties for the .net project.
I've created a public Class, and a public Interface, the interface referencing the public methods within the public class, and the public class implements the interface. Still can't see the public methods when the class is instantiated however from the VB.6 ActiveX.

I just don't understand what techniques are required to ensure that a particular vb.net public class will expose it's public methods. I thought the Interface decloration would take care of this. Am I missing any other Declaration statements?

Here is the code.

Imports System

Public Interface iCapture

Function SaveSource(ByVal TestString As String) As Boolean

End Interface

Public Class Capture

Implements HTMLParser.iCapture

Private strTestString As String

Public Function SaveSource(ByVal TestString As String) As Boolean Implements iCapture.SaveSource

strTestString = TestString

Return True

End Function

End Class

Thanks,

Bryan Garaventa

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )