loading Dll at runtime.

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

    #1

    loading Dll at runtime.



    I want to know how can I load dll, which was created by me,
    at runtime and once dll is loaded how can it be possible to access it's
    functions?
    (in C#)



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Greg Ewing [MVP]

    #2
    Re: loading Dll at runtime.

    Meital, check out the Assembly class and all of it's associated subclasses.
    You also might want to read up on Reflection.

    --
    Greg Ewing [MVP]
    IT support built exclusively for nonprofits. 25 years of managed IT, help desk, and cybersecurity - so your team can focus on your mission.


    "Meital s" <meital@lifesty les.co.il> wrote in message
    news:u8lA2mXdDH A.2672@tk2msftn gp13.phx.gbl...[color=blue]
    >
    >
    > I want to know how can I load dll, which was created by me,
    > at runtime and once dll is loaded how can it be possible to access it's
    > functions?
    > (in C#)
    >
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it![/color]


    Comment

    • William Ryan

      #3
      Re: loading Dll at runtime.

      Yep, reflection is the way to go. John Connell has a snippet in his Coding
      Techniques for VB.NET programming called AssemblySpy that lets you use an
      open Dialog to retrieve a .dll or .exe and it tells you all the information
      about it. It's a pretty easy to understand explanation IMHO.

      Here's a link I found helpful, but there's a lot to reflection and something
      you'll need to do some decent studying with to fully manipulate it.

      Cheers,

      Bill
      "Greg Ewing [MVP]" <gewing@_NO_SPA M_gewing.com> wrote in message
      news:e6PzHxXdDH A.1128@tk2msftn gp13.phx.gbl...[color=blue]
      > Meital, check out the Assembly class and all of it's associated[/color]
      subclasses.[color=blue]
      > You also might want to read up on Reflection.
      >
      > --
      > Greg Ewing [MVP]
      > http://www.citidc.com
      >
      > "Meital s" <meital@lifesty les.co.il> wrote in message
      > news:u8lA2mXdDH A.2672@tk2msftn gp13.phx.gbl...[color=green]
      > >
      > >
      > > I want to know how can I load dll, which was created by me,
      > > at runtime and once dll is loaded how can it be possible to access it's
      > > functions?
      > > (in C#)
      > >
      > >
      > >
      > > *** Sent via Developersdex http://www.developersdex.com ***
      > > Don't just participate in USENET...get rewarded for it![/color]
      >
      >[/color]


      Comment

      Working...