Class 类在VB6实现中终止

Class 类在VB6实现中终止,class,vb6,Class,Vb6,从这个问题开始,我试图在一个实现接口的类中创建一个Class_Terminate方法。但是我找不到任何方法来编译它,因为方法名 MyImplementation_Class_Terminate perforce包含一个下划线字符,这是实现方法名称中不能包含的(根据本文) 有人知道我应该怎么做才能让它工作吗?接口中没有Class\u Terminate方法 ''In class MyInterface Public Sub Method() '' method on the interface

从这个问题开始,我试图在一个实现接口的类中创建一个Class_Terminate方法。但是我找不到任何方法来编译它,因为方法名

MyImplementation_Class_Terminate
perforce包含一个下划线字符,这是实现方法名称中不能包含的(根据本文)


有人知道我应该怎么做才能让它工作吗?

接口中没有
Class\u Terminate
方法

''In class MyInterface
Public Sub Method()  '' method on the interface
End Sub 

''In class MyImplementation
Implements MyInterface 
Private Sub MyInterface_Method() 
End Sub

Private Sub Class_Terminate()
End Sub

Class\u Terminate
方法不是接口的一部分

''In class MyInterface
Public Sub Method()  '' method on the interface
End Sub 

''In class MyImplementation
Implements MyInterface 
Private Sub MyInterface_Method() 
End Sub

Private Sub Class_Terminate()
End Sub

所有具体类都有一个
Class\u Terminate
事件,因此无需通过接口强制执行此要求(如果实际可行!)所有具体类都有一个
Class\u Terminate
事件,因此无需通过接口强制执行此要求(如果实际可行!)