Dll basic question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JM

    #1

    Dll basic question

    Hi,

    I have create several Dll to be used in my programs. Until now each Dll
    contains only one class (with several functions inside), my question is:

    Is by any means possible to create a Dll with several classes inside?, if
    so, How?.
    That is: I need something like: "MyDll.MyClass1 .MyFunction1" but also
    "MyDll.MyClass2 .MyFunction5"

    Thanks,

    Jamie


  • Lars Graeve

    #2
    Re: Dll basic question

    Hi Jamie,

    create a new project an copy all your classes to it. Compile and be happy.
    The way to acccess the classes is fully right.

    Greeting, Lars


    "JM" <jm06@ya.comsch rieb im Newsbeitrag
    news:O5ReDkFuGH A.4160@TK2MSFTN GP06.phx.gbl...
    Hi,
    >
    I have create several Dll to be used in my programs. Until now each Dll
    contains only one class (with several functions inside), my question is:
    >
    Is by any means possible to create a Dll with several classes inside?, if
    so, How?.
    That is: I need something like: "MyDll.MyClass1 .MyFunction1" but also
    "MyDll.MyClass2 .MyFunction5"
    >
    Thanks,
    >
    Jamie
    >

    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Dll basic question

      "JM" <jm06@ya.comsch rieb:
      I have create several Dll to be used in my programs. Until now each Dll
      contains only one class (with several functions inside), my question is:
      >
      Is by any means possible to create a Dll with several classes inside?, if
      so, How?.
      That is: I need something like: "MyDll.MyClass1 .MyFunction1" but also
      "MyDll.MyClass2 .MyFunction5"
      Yes, simply add additional classes to your class library project.

      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://classicvb.org/petition/>

      Comment

      • Grumpy Aero Guy

        #4
        Re: Dll basic question

        Or, you clould wrap all of the individual classes into one namespace....
        (Namespace ... End Namespace)

        Then, an end user only has to know the name of the namepsace and can
        navigate thru from there....



        --
        Grumpy Aero Guy



        "JM" <jm06@ya.comwro te in message
        news:O5ReDkFuGH A.4160@TK2MSFTN GP06.phx.gbl...
        Hi,
        >
        I have create several Dll to be used in my programs. Until now each Dll
        contains only one class (with several functions inside), my question is:
        >
        Is by any means possible to create a Dll with several classes inside?, if
        so, How?.
        That is: I need something like: "MyDll.MyClass1 .MyFunction1" but also
        "MyDll.MyClass2 .MyFunction5"
        >
        Thanks,
        >
        Jamie
        >

        Comment

        • GhostInAK

          #5
          Re: Dll basic question

          Hello Grumpy,

          Right, because popping up the Object Browser is too difficult, so instead
          the library designer should dis/de-organize their library. Use as many namespaces
          as seems logical to organize your classes. If people are too stoopid to
          use the tools given them, hell with em.

          -Boo
          Or, you clould wrap all of the individual classes into one
          namespace.... (Namespace ... End Namespace)
          >
          Then, an end user only has to know the name of the namepsace and can
          navigate thru from there....
          >
          "JM" <jm06@ya.comwro te in message
          news:O5ReDkFuGH A.4160@TK2MSFTN GP06.phx.gbl...
          >
          >Hi,
          >>
          >I have create several Dll to be used in my programs. Until now each
          >Dll contains only one class (with several functions inside), my
          >question is:
          >>
          >Is by any means possible to create a Dll with several classes
          >inside?, if
          >so, How?.
          >That is: I need something like: "MyDll.MyClass1 .MyFunction1" but also
          >"MyDll.MyClass 2.MyFunction5"
          >Thanks,
          >>
          >Jamie
          >>

          Comment

          Working...