Results 1 to 3 of 3

Thread: Modules

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Posts
    207

    Modules

    Hello,

    Have a question that someone may be able to answer.

    I am working on an app that does a couple of different things but I am thinking I would like to make it more expandable for the future. What I want to be able to do is create and app that will look in a certian folder for any dll files and then read the dll file and add a menu defined in the library. Now I can do this if I add a refernce at design time but I am unsure on how to go about making and app look for a dll file after it has been compiled.

    Basically I am looking for something like the MMC where you can load a dll and then add that functionality to it.

    If anyone has any ideas on how to go about this I would greatly appreciate it.

    Jeremy

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Use the system.reflection namespace.
    Dont gain the world and lose your soul

  3. #3
    Addicted Member MasterBlaster's Avatar
    Join Date
    Jul 2002
    Location
    Seattle
    Posts
    196
    Yup look into reflection. I am doing something similar only the list is maintained in an xml file so it can be changed without recompiling also. Be sure to use a common interface in your dlls reflection is a bigtime resource hog. the less your prog needs to figure out at runtime the better.

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