Author Topic: How to get the base class's method?  (Read 1275 times)

0 Members and 1 Guest are viewing this topic.

guohq

  • Newt
  • Posts: 84
How to get the base class's method?
« on: January 03, 2015, 09:22:03 PM »
I define two com class in visual studio,like below:
<ComClass(T1.ClassId, T1.InterfaceId, T1.EventsId)> _
Public Class ComT1
    Public Sub New()
        MyBase.New()
    End Sub
    Public Sub T1()
        MsgBox("T1")
    End Sub
End Class


<ComClass(T2.ClassId, T2.InterfaceId, T2.EventsId)> _
Public Class ComT2
    Inherits ComT1
    Public Sub New()
        MyBase.New()
    End Sub

    Sub T2()
        MsgBox("T2")
    End Sub
End Class

create the object in autocad:

(setq oT1 (vlax-create-object "TT.ComT1"))
(setq oT2 (vlax-create-object "TT.ComT2"))

when I dump the oT2 variable in autocad,I can not get base class's method:

(vlax-dump-object oT2 T)

only get T2 method
how can I get the T1 method in oT2?