Click to See Complete Forum and Search --> : Importing Classes


dem
January 20th, 2003, 10:23 AM
Hi, i was just wondering, if i'm creating my own class, and in that I 'Import' from given namespaces, do I then need to import them again when I import my own classes into my project?

I hope the question makes sense.

Cheers

Bantam
January 20th, 2003, 12:19 PM
No, from what I know of C++, you don't have to, I would assume the same with VB.net. However, if there are supporting files necessary for the imported files/whatever, you have to have them also, because when you import something that imports *think* it doesn't inlude the supporting files anymore than just having the original.

Hope this reply makes sense!

nswan
January 20th, 2003, 12:32 PM
Bantam is right

you don't have to import the namespace from where you use the class.

That is unless you want to use that namespace outside of the class's functionality i.e. use it when not using something to do with the class

god that's kinda hard to explain!