Interface Limitations in VB6

I am trying to implement (i.e., implement an interface) a class in VB 6, but I get this error: "Compilation error: invalid interface for implementation: the interface contains data fields." So I'm wondering if there are any restrictions on the class you can implement? Or, if anyone knows why I am getting this particular error, that would be helpful too.

Let me know if I need to be more clear. Thanks guys.

Dave

+5
source share
2 answers

Interfaces in VB6 can only include methods, not member variables.

You can model a member variable by implementing a property method (with let and get functions).

+6

VB . , , , , , VB , , long. VB unsigned longs, LONG-, - .

, OLE-, , , IDL , MIDL , VB.

VB6 " ".

+4

All Articles