A
Alan Sloan
I have a Class Library that I am writing that is COM visible to maintain a
VB6 app. In this Class Library I have the following classes.
Public Class SomeBaseObject
Public Function DoSomething() as Boolean
.....
End Function
....
End Class
<ComClass(Item.ClassId, Item.InterfaceId, Item.EventsId)> _
Public Class MyDerivedClass
Inherits SomeBaseObject
' These GUIDs provide the COM identity for this class
Public Const ClassId As String = "95af8113-4a12-42e4-b6f9-8beb9bdf7591"
Public Const InterfaceId As String =
"1f7e7d99-d1c0-4732-8d2d-20c258d4883f"
Public Const EventsId As String = "de109a8b-ad82-4ed7-8442-087d2ba569c3"
....
End Class
When I use MyDerivedClass in a .net assy, I can instantiate the
MyDerivedClass object and the method DoSomething is visible and available as
you would expect.
When I use MyDerivedClass in my VB6 app, I can instantiate the
MyDerivedClass "object" but I cannot see the method DoSomething(or anything
else) from the base class. All I can see or access are the properties and
methods of the MyDerivedClass object.
What am I missing? Any help would be greatly appreciated!
Alan
VB6 app. In this Class Library I have the following classes.
Public Class SomeBaseObject
Public Function DoSomething() as Boolean
.....
End Function
....
End Class
<ComClass(Item.ClassId, Item.InterfaceId, Item.EventsId)> _
Public Class MyDerivedClass
Inherits SomeBaseObject
' These GUIDs provide the COM identity for this class
Public Const ClassId As String = "95af8113-4a12-42e4-b6f9-8beb9bdf7591"
Public Const InterfaceId As String =
"1f7e7d99-d1c0-4732-8d2d-20c258d4883f"
Public Const EventsId As String = "de109a8b-ad82-4ed7-8442-087d2ba569c3"
....
End Class
When I use MyDerivedClass in a .net assy, I can instantiate the
MyDerivedClass object and the method DoSomething is visible and available as
you would expect.
When I use MyDerivedClass in my VB6 app, I can instantiate the
MyDerivedClass "object" but I cannot see the method DoSomething(or anything
else) from the base class. All I can see or access are the properties and
methods of the MyDerivedClass object.
What am I missing? Any help would be greatly appreciated!
Alan