Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't create nested class vb.net/vb6 HELP!!!

Status
Not open for further replies.

grom2

Programmer
Oct 27, 2005
11
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top