CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2003
    Posts
    1

    Question Importing Classes

    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

  2. #2
    Join Date
    Jan 2003
    Posts
    48
    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!

  3. #3
    Join Date
    Jan 2003
    Posts
    14
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured