I have the following code in a Class Library
In the Assembly Information I have selected "Make assembly COM-visible". In the Compile options I have selected "Register for COM Interop".Code:Imports System Imports System.Reflection Namespace Managed Public Class MetaClass Public Function GetAssembly(ByVal pathname As String) As Assembly Return Assembly.Load(pathname) End Function End Class End Namespace
I have registered the resultant TLB file with VBRegTLB.exe.
However, I am still unable to reference this using Vbscript (i.e. it doesn't show up as scriptable COM object).
Can anyone tell me what I'm doing wrong?




Reply With Quote