Adding References Dynamically

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anantha786
    New Member
    • Nov 2007
    • 1

    #1

    Adding References Dynamically

    Hai ,
    I have a class library named "testSQL.dl l"
    I am writing a windows service in vb.net. So i want to use this class library in that.
    So for that we generally add the class library in the reference and create a object for that and access the methods which are there in the dll.

    for ex: We create a object as
    Dim obj as new testSQL.testser vice
    obj.addNumber()

    But what i want is i want to read the dll name i.e the class library name dynically.
    so how to do that.

    Now i want to create the object as

    Dim obj as new <dllName>.tests ervice
    obj.addNumber()


    Thanks in advacne.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    I don't think that this can be done, but suggest searching the site as I have seem a similar post.

    Comment

    Working...