Dynamic Assemblies
-
Hi, Does anyone know how i can load assemblies in my program at runtime or DLL's of managed code ? Ive seen a class in System.Reflection called Assembly but i am unsure if this is what im looking for. I am trying to create a plugin system for my program which scans a directory for DLL's and loads them up. The loading is the easy part, im just looking for a way to make my program aware that other assemblies exist and to load a default class supported by every assembly at runtime. Hope that makes sense. Any ideas on how i would go about this ? Cheers
-
Hi, Does anyone know how i can load assemblies in my program at runtime or DLL's of managed code ? Ive seen a class in System.Reflection called Assembly but i am unsure if this is what im looking for. I am trying to create a plugin system for my program which scans a directory for DLL's and loads them up. The loading is the easy part, im just looking for a way to make my program aware that other assemblies exist and to load a default class supported by every assembly at runtime. Hope that makes sense. Any ideas on how i would go about this ? Cheers
-
Hi, Does anyone know how i can load assemblies in my program at runtime or DLL's of managed code ? Ive seen a class in System.Reflection called Assembly but i am unsure if this is what im looking for. I am trying to create a plugin system for my program which scans a directory for DLL's and loads them up. The loading is the easy part, im just looking for a way to make my program aware that other assemblies exist and to load a default class supported by every assembly at runtime. Hope that makes sense. Any ideas on how i would go about this ? Cheers
I feel extremely bad about doing this, but I wrote a couple articles for CP that do just what you're looking for. Look for "TypeLoader for .NET" for some code you can plug in to your existing application, or look for "Using reflection to extend NET programs" to get a more in-depth look at what typeloader is doing. HTH, James Sonork ID: 100.11138 - Hasaki
-
I feel extremely bad about doing this, but I wrote a couple articles for CP that do just what you're looking for. Look for "TypeLoader for .NET" for some code you can plug in to your existing application, or look for "Using reflection to extend NET programs" to get a more in-depth look at what typeloader is doing. HTH, James Sonork ID: 100.11138 - Hasaki