VB6实现中的Class_Terminate

Bri*_*per 0 vb6 class

继续这个问题VB6类是否有析构函数?,我试图在实现接口的类中创建一个Class_Terminate方法.但是我找不到任何方法来编译它,因为方法名称

MyImplementation_Class_Terminate
Run Code Online (Sandbox Code Playgroud)

perforce包含一个下划线字符,实现方法名称中不能包含该字符(根据此http://msdn.microsoft.com/en-us/library/aa262287(VS.60).aspx).

有谁知道我应该怎么做才能让它发挥作用?

Mar*_*rkJ 5

Class_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
Run Code Online (Sandbox Code Playgroud)