开发者

Class_Terminate in VB6 Implementations

Following on from this question Does a VB6 c开发者_StackOverflow中文版lass have a destructor? , I am attempting to create a Class_Terminate method in a class that implements an interface. But I can't find any way to get it to compile, since the method name

MyImplementation_Class_Terminate

perforce includes an underscore character, which one can't have in implementation method names (according to this http://msdn.microsoft.com/en-us/library/aa262287(VS.60).aspx).

Does anyone know what I should do to get this to work?


The Class_Terminate method isn't part of the interface.

''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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜