The trouble i'm having is I can't create objects with nested classes from vb6. Try this, create the following class in VB.NET. Then regasm it and try to create an object based on the nested class from vb6. Then try to declare the following object. I can't. As soon as I run the project it tells me the type is undefined. Why? Also is it required that you create an interface for .net dlls that you want to instantiate from vb6?
dim obj as new EnclosingClass.NestedClass
' Visual Basic.net class
' This is the enclosing class, whose class declaration contains the nested
' class.
Public Class EnclosingClass
' This is the nested class. Its class declaration is fully contained
' within the enclosing class.
Public Class NestedClass
' Insert code to implement NestedClass.
End Class
' Insert code to implement EnclosingClass.
End Class
Thanks, Glenn
dim obj as new EnclosingClass.NestedClass
' Visual Basic.net class
' This is the enclosing class, whose class declaration contains the nested
' class.
Public Class EnclosingClass
' This is the nested class. Its class declaration is fully contained
' within the enclosing class.
Public Class NestedClass
' Insert code to implement NestedClass.
End Class
' Insert code to implement EnclosingClass.
End Class
Thanks, Glenn